Skip to main content

Interface: UseApiOptions

Defined in: use-api.ts:6

Options for configuring the API request.

Properties​

body?​

optional body?: BodyInit

Defined in: use-api.ts:12

The body of the request for methods that require it (e.g., POST, PUT).


headers?​

optional headers?: HeadersInit

Defined in: use-api.ts:10

Headers to include in the request.


method?​

optional method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"

Defined in: use-api.ts:8

The HTTP method to use for the request. Default is GET.