HttpClientConfig
API reference for HttpClientConfig
Interface: HttpClientConfig
Section titled “Interface: HttpClientConfig”Properties
Section titled “Properties”apiKey?
Section titled “apiKey?”
optionalapiKey:string
baseUrl
Section titled “baseUrl”baseUrl:
string
fetch()?
Section titled “fetch()?”
optionalfetch: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Custom fetch function to use for HTTP requests. Useful for service bindings in Cloudflare Workers. When provided, this will be used instead of the global fetch.
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”URL | RequestInfo
RequestInit
Returns
Section titled “Returns”Promise<Response>
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”string | URL | Request
RequestInit
Returns
Section titled “Returns”Promise<Response>
headers?
Section titled “headers?”
optionalheaders:Record<string,string>