- withHTTPClient(httpClient): ((settings: Readonly<Settings>) => Settings)
Parameters
- httpClient: {
(input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
(input: string | Request | URL, init?: RequestInit): Promise<Response>;
}- (input, init?): Promise<Response>
Parameters
- input: URL | RequestInfo
Optional
init: RequestInit
Returns Promise<Response>
- (input, init?): Promise<Response>
Parameters
- input: string | Request | URL
Optional
init: RequestInit
Returns Promise<Response>
Returns ((settings: Readonly<Settings>) => Settings)
A factory ClientConfig
Instantiates the SDK with a different HTTP client.
Remarks
This method should be used in conjunction with the initializer
createAdvancedClient
.