Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.30/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