Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
interface Route
import { type Route } from "https://deno.land/x/darkflare@v7.2.6/core/Route.d.ts";

Properties

schema: { meta?: { name?: string; description?: string; private?: boolean; }; body?: unknown; query?: unknown; headers?: unknown; cookies?: unknown; parameters?: unknown; }
handle: (
env: darkflare.Environment,
waitUntil: (promise: Promise<unknown>) => void,
body: string | Record<string, unknown> | null,
cookies: Record<string, string>,
headers: Record<string, string>,
parameters: Record<string, string>,
query: Record<string, unknown>,
) => Promise<Response>