Skip to content

Type Alias: RequestInterceptor ​

RequestInterceptor = (request) => InterceptedRequest | void | Promise<InterceptedRequest | void>

Defined in: api/rust-fetch.d.ts:471

Return a (possibly new) request, or nothing to keep the mutated one.

Parameters ​

request ​

InterceptedRequest

Returns ​

InterceptedRequest | void | Promise<InterceptedRequest | void>

Released under the MIT or Apache-2.0 license.