Module

x/fresh/src/server/types.ts>MiddlewareHandler

The next-gen web framework.
Extremely Popular
Latest
type alias MiddlewareHandler
import { type MiddlewareHandler } from "https://dotland.deno.dev/x/fresh@1.7.3/src/server/types.ts";

Type Parameters

optional
State = Record<string, unknown>
definition: (req: Request, ctx: FreshContext<State>) => Response | Promise<Response>