class AbstractFetchEvent
implements EventInit
extends IsomorphicExtendableEvent
Abstract
import { AbstractFetchEvent } from "https://deno.land/x/keywork@v6.2.1/events/classes/AbstractFetchEvent.ts";
Constructors
new
AbstractFetchEvent(eventType?, unnamed 1: IsomorphicFetchEventInit)Properties
request: Request
The incoming request received by the Worker.
Both the request's url
property and the parent IsomorphicFetchEvent
will reflect
the current parsed route handler of RequestRouter
.
Methods
deprecated
passThroughOnException(): voidPrevents a runtime error response when the Worker script throws an unhandled exception.
deprecated
respondWith(_response: Response): voidIntercepts the request and allows the Worker to send a custom response.