Skip to content

Type Alias: HttpRequest<D> ​

ts
type HttpRequest<D> = object;

Defined in: HttpRequest.ts:8

Generic request API.

Type Parameters ​

D ​

D = any

Properties ​

body? ​

ts
body?: BodyInit;

Defined in: HttpRequest.ts:22

The body of the request.


credentials? ​

ts
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? ​

ts
customData?: D;

Defined in: HttpRequest.ts:53

Any custom data.


headers? ​

ts
headers?: Record<string, string>;

Defined in: HttpRequest.ts:32

The headers object associated with the request.


method? ​

ts
method?: string;

Defined in: HttpRequest.ts:17

The request's method (GET, POST, etc).


mode? ​

ts
mode?: RequestMode;

Defined in: HttpRequest.ts:42

The mode of the request, for example cors, no-cors, or same-origin.


responseType? ​

ts
responseType?: RequestResponseType;

Defined in: HttpRequest.ts:27

The type that the response from the server must be compatible with.


timeout? ​

ts
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 ​

ts
url: string;

Defined in: HttpRequest.ts:12

The URL of the request.

A Streaming Video Technology Alliance project.