Skip to content

Interface: RequestConfig

Defined in: http.ts:14

Configuration for an individual HTTP request.

Properties

data?

ts
optional data?: unknown;

Defined in: http.ts:20

Optional request body (will be JSON-serialized).


method

ts
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";

Defined in: http.ts:16

HTTP method.


params?

ts
optional params?: Record<string, string>;

Defined in: http.ts:22

Optional query parameters.


url

ts
url: string;

Defined in: http.ts:18

API path (relative to the base URL).