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

x/netzo/apis/create-api/types.ts>FetchOptions

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
interface FetchOptions
implements Omit<RequestInit, "body">
Re-export
import { type FetchOptions } from "https://deno.land/x/netzo@0.5.70/apis/create-api/types.ts";

Properties

optional
baseURL: string
optional
body: RequestInit["body"] | Record<string, any>
optional
ignoreResponseError: boolean
optional
params: SearchParameters
optional
query: SearchParameters
optional
parseResponse: (responseText: string) => any
optional
responseType: R
optional
response: boolean
optional
retry: number | false

Methods

optional
onRequest(context: FetchContext): Promise<void> | void
optional
onRequestError(context: FetchContext & { error: Error; }): Promise<void> | void
optional
onResponse(context: FetchContext & { response: FetchResponse<R>; }): Promise<void> | void
optional
onResponseError(context: FetchContext & { response: FetchResponse<R>; }): Promise<void> | void