Skip to main content

Reference / Modules / client / MultiSourceHttpClient

Class: MultiSourceHttpClient<E>

client.MultiSourceHttpClient

Type parameters

NameType
Eextends Endpoint

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MultiSourceHttpClient<E>(initialState, axiosFactory, token?): MultiSourceHttpClient<E>

Type parameters

NameType
Eextends Endpoint

Parameters

NameType
initialStateMultiSourceHttpClientState<E>
axiosFactoryAxiosFactory
token?string

Returns

MultiSourceHttpClient<E>

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

NameType
queryQuery<E, R>

Returns

Promise<MultiResponse<R>>

Defined in

packages/client/src/Http.ts:52


getState

getState(): MultiSourceHttpClientState<E>

Returns

MultiSourceHttpClientState<E>

Defined in

packages/client/src/Http.ts:71