Reference / Modules / client / MultiSourceHttpClient
Class: MultiSourceHttpClient<E>
client.MultiSourceHttpClient
Type parameters
| Name | Type |
|---|---|
E | extends Endpoint |
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new MultiSourceHttpClient<E>(initialState, axiosFactory, token?): MultiSourceHttpClient<E>
Type parameters
| Name | Type |
|---|---|
E | extends Endpoint |
Parameters
| Name | Type |
|---|---|
initialState | MultiSourceHttpClientState<E> |
axiosFactory | AxiosFactory |
token? | string |
Returns
Defined in
packages/client/src/Http.ts:37
Properties
axiosFactory
• Private axiosFactory: AxiosFactory
Defined in
packages/client/src/Http.ts:50
nodesDown
• Private nodesDown: E[]
Defined in
packages/client/src/Http.ts:46
nodesUp
• Private nodesUp: E[]
Defined in
packages/client/src/Http.ts:44
token
• Private Optional token: string
Defined in
packages/client/src/Http.ts:48
Methods
fetch
▸ fetch<R>(query): Promise<MultiResponse<R>>
Type parameters
| Name |
|---|
R |
Parameters
| Name | Type |
|---|---|
query | Query<E, R> |
Returns
Promise<MultiResponse<R>>
Defined in
packages/client/src/Http.ts:52
getState
▸ getState(): MultiSourceHttpClientState<E>