Skip to content

Documentation / @imvu/rest / RequestOptions

Interface: RequestOptions ​

Defined in: packages/rest/src/rest.ts:19

Options for a single request.

Properties ​

baseURL? ​

ts
baseURL?: string;

Defined in: packages/rest/src/rest.ts:29

Base URL for a relative url, overriding RESTOptions.baseURL.


data? ​

ts
data?: unknown;

Defined in: packages/rest/src/rest.ts:25

JSON request body.


headers? ​

ts
headers?: Record<string, string>;

Defined in: packages/rest/src/rest.ts:26


method? ​

ts
method?: string;

Defined in: packages/rest/src/rest.ts:21

HTTP method. Defaults to GET.


params? ​

ts
params?: Record<string, QueryValue>;

Defined in: packages/rest/src/rest.ts:23

Query parameters, set on the URL (replacing any of the same name); null/undefined are skipped.


signal? ​

ts
signal?: AbortSignal;

Defined in: packages/rest/src/rest.ts:27

Released under the MIT License.