The parent Kinetex instance.
HTTP method for this request.
Request URL (relative to baseURL or absolute).
Set or override a single header.
Attach an Idempotency-Key, generating one when none is given.
Lets a retried POST be recognised as the same logical operation by the
server instead of creating a duplicate. Because the header is set on the
request options — not regenerated per attempt — every retry of this
request carries the same key, which is the entire point.
Optionalvalue: string
An explicit key, or undefined to generate a v4 UUID.
Set the request body.
Set a JSON body (serializes and sets Content-Type).
Set a FormData body.
Set Bearer token authentication.
Set Basic authentication.
Set API key authentication.
Set Digest Access Authentication (RFC 7616).
Disable auth for this request.
Set max retry count.
Optionaloptions: Partial<RetryConfig>Disable retry for this request.
Set request timeout in ms.
Force a fresh fetch, bypassing any cached response.
Attach an AbortSignal for cancellation.
Set maximum response body size in bytes.
Request HTTP/2.
Request HTTP/1.1.
Do not throw on 4xx/5xx status codes.
Attach cache tags.
Attach arbitrary metadata.
Execute and return the full KinetexResponse.
Execute and return the parsed data. Alias for .send().then(r => r.data).
Execute, parse as text, and return the string.
Execute, return raw bytes.
Execute, return a Blob.
Execute with callback-style handlers.
OptionalonError: (err: KinetexError) => void
Fluent (chained) request builder. Each method returns
thisfor chaining; call.send()or a parser method to execute.Example