Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function Get
import { Get } from "https://deno.land/x/darkflare@v7.2.6/worker/deps.ts";

Type Parameters

optional
ParsedBody = unknown
optional
ParsedQuery = unknown
optional
ParsedHeaders = unknown
optional
ParsedCookies = unknown
optional
ParsedParameters = unknown

Parameters

schema: { body?: ParsedBody; query?: ParsedQuery; headers?: ParsedHeaders; cookies?: ParsedCookies; parameters?: ParsedParameters; preValidator?: (c: FetchContext) => Promise<unknown> | unknown; postValidator?: (c: FetchContext<ParsedBody, ParsedQuery, ParsedHeaders, ParsedCookies, ParsedParameters>) => Promise<unknown> | unknown; preHandler?: (c: FetchContext<ParsedBody, ParsedQuery, ParsedHeaders, ParsedCookies, ParsedParameters>) => Promise<unknown> | unknown; postHandler?: (c: FetchContext<ParsedBody, ParsedQuery, ParsedHeaders, ParsedCookies, ParsedParameters>) => Promise<unknown> | unknown; }
handler: (c: FetchContext<ParsedBody, ParsedQuery, ParsedHeaders, ParsedCookies, ParsedParameters>) => Promise<unknown> | unknown