Skip to content

HTTPRequestOptions

Defined in: domains/http.ts:16

optional headers?: Record<string, string>;

Defined in: domains/http.ts:9

Additional request headers.

HTTPOptions.headers


optional timeout?: number;

Defined in: domains/http.ts:11

Request timeout in milliseconds. Defaults to 30000.

HTTPOptions.timeout


optional responseType?: HTTPResponseType;

Defined in: domains/http.ts:13

Expected response format. Defaults to 'json'.

HTTPOptions.responseType


optional method?: HTTPMethod;

Defined in: domains/http.ts:17


optional body?: unknown;

Defined in: domains/http.ts:18