Deprecated
Name might change, errorHandler not implemented
import { withMiddleware } from "https://deno.land/x/workers_middleware@v0.1.0-pre.36/context.ts";
Takes a handler function of the form (x: Request, ctx: Context) => Awaitable<Response>
and applies middleware to it.
Type Parameters
X extends Context
EX extends ErrorContext