Skip to main content
Deno 2 is finally 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.4.0/src/server/mod.ts";

Type Parameters

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