Skip to content

RequestInterceptor

RequestInterceptor = (url, init) => RequestInit | undefined | Promise<RequestInit | undefined>

Defined in: packages/fetch-kit/src/types.ts:40

A function that runs before the request is sent. Receives the request init and may modify it (return new init or undefined to leave unchanged).

string

RequestInit

RequestInit | undefined | Promise<RequestInit | undefined>