HttpClientConfig
@forge/monorepo / backend/src / HttpClientConfig
Type Alias: HttpClientConfig
HttpClientConfig =
object
Defined in: backend/src/toolkit/http.ts:106
Properties
fetchImpl?
readonlyoptionalfetchImpl?: typeoffetch
Defined in: backend/src/toolkit/http.ts:108
headersFor?
readonlyoptionalheadersFor?: (host) =>Readonly<Record<string,string>> |undefined
Defined in: backend/src/toolkit/http.ts:116
Per-host request headers, from configuration. Called with the validated hostname only, so a header issued for one host cannot be sent to another by asking for a URL that merely mentions it.
Parameters
host
string
Returns
Readonly<Record<string, string>> | undefined
maxBytes?
readonlyoptionalmaxBytes?:number
Defined in: backend/src/toolkit/http.ts:109
nonce?
readonlyoptionalnonce?: () =>string
Defined in: backend/src/toolkit/http.ts:111
Returns
string
policy?
readonlyoptionalpolicy?:EgressPolicy
Defined in: backend/src/toolkit/http.ts:107
randomHex?
readonlyoptionalrandomHex?: (bytes) =>string
Defined in: backend/src/toolkit/http.ts:117
Parameters
bytes
number
Returns
string
timeoutMs?
readonlyoptionaltimeoutMs?:number
Defined in: backend/src/toolkit/http.ts:110