Skip to main content

ApiOptions

the-cdj-ui


the-cdj-ui / hooks/apiRequest / ApiOptions

Interface: ApiOptions

Options for configuring an API request.

Properties

body?

optional body: Record<string, unknown>

The request body to send with the request (e.g., JSON data).

Defined in

src/hooks/apiRequest.ts:25


credentials?

optional credentials: RequestCredentials

The credentials policy for the request (e.g., 'include', 'same-origin', 'omit').

Defined in

src/hooks/apiRequest.ts:27


headers

headers: Record<string, string>

Headers to include in the request (e.g., 'Content-Type', 'Authorization').

Defined in

src/hooks/apiRequest.ts:26


method

method: Method

The HTTP method to use for the request (e.g., 'GET', 'POST', 'PUT', 'DELETE').

Defined in

src/hooks/apiRequest.ts:24