Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fetch_goody/mod.ts>Interceptors

a fetch wrapper that supports interceptors, JSON body, retry, timeout and many many more ...
Latest
type alias Interceptors
Re-export
import { type Interceptors } from "https://deno.land/x/fetch_goody@7.0.6/mod.ts";

The type for interceptors you can pass to the extended init

definition: { request?: (init: ExtendedRequest) => void | Promise<void>; response?: (init: ExtendedRequest, response: Response) => void | Promise<void>; }