Skip to content

Commit

Permalink
Introduce a directory structure for web HTTP stuff
Browse files Browse the repository at this point in the history
Similar to that used for transports.
  • Loading branch information
lawrence-forooghian committed Nov 8, 2023
1 parent 1b806ee commit 2341e26
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/platform/nativescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ErrorInfo from '../../common/lib/types/errorinfo';
import BufferUtils from '../web/lib/util/bufferutils';
// @ts-ignore
import { createCryptoClass } from '../web/lib/util/crypto';
import Http from '../web/lib/util/http';
import Http from '../web/lib/http/http';
// @ts-ignore
import Config from './config';
// @ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion src/platform/react-native/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ErrorInfo from '../../common/lib/types/errorinfo';
import BufferUtils from '../web/lib/util/bufferutils';
// @ts-ignore
import { createCryptoClass } from '../web/lib/util/crypto';
import Http from '../web/lib/util/http';
import Http from '../web/lib/http/http';
import configFactory from './config';
// @ts-ignore
import Transports from '../web/lib/transport';
Expand Down
2 changes: 1 addition & 1 deletion src/platform/web-noencryption/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ErrorInfo from '../../common/lib/types/errorinfo';
// Platform Specific
import BufferUtils from '../web/lib/util/bufferutils';
// @ts-ignore
import Http from '../web/lib/util/http';
import Http from '../web/lib/http/http';
import Config from '../web/config';
// @ts-ignore
import Transports from '../web/lib/transport';
Expand Down
2 changes: 1 addition & 1 deletion src/platform/web/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ErrorInfo from '../../common/lib/types/errorinfo';
import BufferUtils from './lib/util/bufferutils';
// @ts-ignore
import { createCryptoClass } from './lib/util/crypto';
import Http from './lib/util/http';
import Http from './lib/http/http';
import Config from './config';
// @ts-ignore
import Transports from './lib/transport';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { IHttpStatic, RequestCallback, RequestParams } from 'common/types/http';
import HttpMethods from 'common/constants/HttpMethods';
import BaseClient from 'common/lib/client/baseclient';
import BaseRealtime from 'common/lib/client/baserealtime';
import XHRRequest from '../transport/xhrrequest';
import XHRRequest from './request/xhrrequest';
import XHRStates from 'common/constants/XHRStates';
import Logger from 'common/lib/util/logger';
import { StandardCallback } from 'common/types/utils';
import fetchRequest from '../transport/fetchrequest';
import fetchRequest from './request/fetchrequest';
import { NormalisedClientOptions } from 'common/types/ClientOptions';
import { isSuccessCode } from 'common/constants/HttpStatusCodes';

Expand Down
2 changes: 1 addition & 1 deletion src/platform/web/lib/transport/xhrpollingtransport.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Platform from '../../../../common/platform';
import CometTransport from '../../../../common/lib/transport/comettransport';
import XHRRequest from './xhrrequest';
import XHRRequest from '../http/request/xhrrequest';
import ConnectionManager, { TransportParams, TransportStorage } from 'common/lib/transport/connectionmanager';
import Auth from 'common/lib/client/auth';
import { RequestParams } from 'common/types/http';
Expand Down
2 changes: 1 addition & 1 deletion src/platform/web/lib/transport/xhrstreamingtransport.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import CometTransport from '../../../../common/lib/transport/comettransport';
import Platform from '../../../../common/platform';
import XHRRequest from './xhrrequest';
import XHRRequest from '../http/request/xhrrequest';
import ConnectionManager, { TransportParams, TransportStorage } from 'common/lib/transport/connectionmanager';
import Auth from 'common/lib/client/auth';
import { RequestParams } from 'common/types/http';
Expand Down
2 changes: 1 addition & 1 deletion src/platform/web/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ErrorInfo from '../../common/lib/types/errorinfo';
// Platform Specific
import BufferUtils from './lib/util/bufferutils';
// @ts-ignore
import Http from './lib/util/http';
import Http from './lib/http/http';
import Config from './config';
// @ts-ignore
import { ModulesTransports } from './lib/transport';
Expand Down

0 comments on commit 2341e26

Please sign in to comment.