Type Alias: HttpRequest<D>
type HttpRequest<D> = object;Defined in: HttpRequest.ts:8
Generic request API.
Type Parameters
D
D = any
Properties
body?
body?: BodyInit;Defined in: HttpRequest.ts:22
The body of the request.
credentials?
credentials?: RequestCredentials;Defined in: HttpRequest.ts:37
Whether the user agent should send or receive cookies from the other domain in cross-origin requests.
customData?
customData?: D;Defined in: HttpRequest.ts:53
Any custom data.
headers?
headers?: Record<string, string>;Defined in: HttpRequest.ts:32
The headers object associated with the request.
method?
method?: string;Defined in: HttpRequest.ts:17
The request's method (GET, POST, etc).
mode?
mode?: RequestMode;Defined in: HttpRequest.ts:42
The mode of the request, for example cors, no-cors, or same-origin.
responseType?
responseType?: RequestResponseType;Defined in: HttpRequest.ts:27
The type that the response from the server must be compatible with.
timeout?
timeout?: number;Defined in: HttpRequest.ts:48
The number of milliseconds the request may take before it is terminated. If the value is undefined or 0, there is no timeout.
url
url: string;Defined in: HttpRequest.ts:12
The URL of the request.