ApiOptions
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
credentials?
optional
credentials:RequestCredentials
The credentials policy for the request (e.g., 'include', 'same-origin', 'omit').
Defined in
headers
headers:
Record
<string
,string
>
Headers to include in the request (e.g., 'Content-Type', 'Authorization').
Defined in
method
method:
Method
The HTTP method to use for the request (e.g., 'GET', 'POST', 'PUT', 'DELETE').