Type Alias: HttpResponse<R>
ts
type HttpResponse<R> = object;Defined in: HttpResponse.ts:10
Generic response API.
Type Parameters
R
R extends HttpRequest = HttpRequest
Properties
data?
ts
data?: ResponseTypeMap<R["responseType"]>;Defined in: HttpResponse.ts:49
The response data.
headers?
ts
headers?: Record<string, string>;Defined in: HttpResponse.ts:44
The response headers.
redirected?
ts
redirected?: boolean;Defined in: HttpResponse.ts:24
Whether the request was redirected.
request
ts
request: R;Defined in: HttpResponse.ts:14
The origin request.
resourceTiming?
ts
resourceTiming?: ResourceTiming;Defined in: HttpResponse.ts:54
The network timing of the request/response.
status?
ts
status?: number;Defined in: HttpResponse.ts:29
The HTTP status code of the response.
statusText?
ts
statusText?: string;Defined in: HttpResponse.ts:34
The status message corresponding to the HTTP status code.
type?
ts
type?: string;Defined in: HttpResponse.ts:39
The type of the response.
url?
ts
url?: string;Defined in: HttpResponse.ts:19
The final URL obtained after any redirects.