Skeudenn / main/services/http-json / HttpOptions
Interface: HttpOptions ​
Defined in: src/main/services/http-json.ts:8
How the metadata clients reach the network.
Properties ​
fetch ​
fetch: {(
input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Defined in: src/main/services/http-json.ts:10
fetch implementation; tests pass a fake.
Call Signature ​
(
input,init?):Promise<Response>
Parameters ​
input ​
URL | RequestInfo
init? ​
RequestInit
Returns ​
Promise<Response>
Call Signature ​
(
input,init?):Promise<Response>
Parameters ​
input ​
string | URL | Request
init? ​
RequestInit
Returns ​
Promise<Response>
signal? ​
optionalsignal?:AbortSignal
Defined in: src/main/services/http-json.ts:16
Aborts the requests when the user stops the lookup; they then fail like a timeout.
timeoutMs ​
timeoutMs:
number
Defined in: src/main/services/http-json.ts:14
Per-request timeout, in milliseconds.
userAgent ​
userAgent:
string
Defined in: src/main/services/http-json.ts:12
Sent as User-Agent: Comic Vine rejects requests carrying a generic one.