Interface RequestOptions

HTTP request options.

interface RequestOptions {
    headers?: Record<string, string>;
    maxRetries?: number;
    params?: Record<string, any>;
    retry?: boolean;
    timeout?: number;
}

Properties

headers?: Record<string, string>

Request headers to merge with default headers.

maxRetries?: number

Maximum number of retry attempts. Defaults to 3 attempts.

params?: Record<string, any>

Query parameters to append to the URL.

retry?: boolean

Whether to retry failed requests. Defaults to true for GET requests.

timeout?: number

Request timeout in milliseconds. Overrides the client's default timeout.