Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

The next-gen web framework.
Extremely Popular
Go to Latest
type alias MiddlewareHandler
import { type MiddlewareHandler } from "https://deno.land/x/fresh@1.6.4/src/server/mod.ts";

Type Parameters

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