Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh/src/server/types.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.1.2/src/server/types.ts";

Type Parameters

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