Interface: RequestConfig

Extends

  • RequestInit

Properties

body?

optional body?: BodyInit

Inherited from

RequestInit.body


cache?

optional cache?: boolean | CacheConfig

Response cache configuration. true = default TTL (5000ms).


credentials?

optional credentials?: RequestCredentials

Inherited from

RequestInit.credentials


data?

optional data?: unknown


dispatcher?

optional dispatcher?: Dispatcher

Inherited from

RequestInit.dispatcher


duplex?

optional duplex?: "half"

Inherited from

RequestInit.duplex


errorInterceptors?

optional errorInterceptors?: ErrorInterceptor[]


headers?

optional headers?: HeadersInit

Inherited from

RequestInit.headers


integrity?

optional integrity?: string

Inherited from

RequestInit.integrity


keepalive?

optional keepalive?: boolean

Inherited from

RequestInit.keepalive


method?

optional method?: string

Inherited from

RequestInit.method


mode?

optional mode?: RequestMode

Inherited from

RequestInit.mode


onAbort?

optional onAbort?: () => void

Returns

void


onDownloadProgress?

optional onDownloadProgress?: (loaded, total) => void

Download progress callback. Receives (loadedBytes, totalBytes).

Parameters

loaded

number

total

number

Returns

void


onError?

optional onError?: (error) => void

Parameters

error

unknown

Returns

void


onFinally?

optional onFinally?: () => void

Returns

void


onSuccess?

optional onSuccess?: (data) => void

Parameters

data

unknown

Returns

void


params?

optional params?: Record<PropertyKey, any>


redirect?

optional redirect?: RequestRedirect

Inherited from

RequestInit.redirect


referrer?

optional referrer?: string

Inherited from

RequestInit.referrer


referrerPolicy?

optional referrerPolicy?: ReferrerPolicy

Inherited from

RequestInit.referrerPolicy


requestInterceptors?

optional requestInterceptors?: RequestInterceptor[]


responseInterceptors?

optional responseInterceptors?: ResponseInterceptor<any, any>[]


retry?

optional retry?: number

Max retry count on failure. 0 = no retry.


retryDelay?

optional retryDelay?: number

Delay between retries in milliseconds.


signal?

optional signal?: AbortSignal

Inherited from

RequestInit.signal


sse?

optional sse?: boolean | SSEConfig

SSE configuration. Enables Server-Sent Events mode when provided.


timeout?

optional timeout?: number

Request timeout in milliseconds. 0 or undefined = no timeout.


window?

optional window?: null

Inherited from

RequestInit.window