import { IsomorphicFetchEvent } from "https://deno.land/x/keywork@v6.0.1/events/classes/IsomorphicFetchEvent.ts";
An event object containing contextual data for a single and specific incoming HTTP request.
Generally, this interface is exclusive to KeyworkRouter#fetch and automatically passed to your subclass's route handlers.
This is similar to EventContext
defined in the @cloudflare/workers-types
package.
However, the IsomorphicFetchEvent
type includes additional information from KeyworkRouter
.
Caveats
- The
request.url
property will be updated by route handler ofKeyworkRouter
.
Constructors
Properties
Optional extra data to be passed to a route handler, usually from Keywork#Middleware | middleware.
The bound environment aliases.
Cloudflare Workers
These are usually defined in your wrangler.toml file.
Node.js
This is similar to process.env
.
URL Patterns matched.
The names and values of dynamic parameters in the URL. Parameters are parsed using the incoming request's URL and the route's pattern.
Static Methods
Checks if the given object is an instance of IsomorphicFetchEvent