import { type Context } from "https://deno.land/x/workers_middleware@v0.1.0-pre.36/context.ts";
Properties
request: Request
The original request for use in middleware. Also accessible via first argument to user handler.
deprecated
effects: AppendOnlyList<ResponseEffect>A list of effects/transforms applied to the Response
after the application handler completes.
Middleware can add effects to the list. Application handlers should ignore it.
handled: Promise<Response>
A promise that resolves when middleware is done applying effects. Related: https://github.com/w3c/ServiceWorker/issues/1397
optional
match: URLPatternResultThe URL pattern match that caused this handler to run. See the URL Pattern API for more.
optional
event: FetchEventOnly available if the router is used via fetchEventListener
.
Many Worker Runtimes such as Deno an CF module workers don't provide fetch events.