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

x/keywork/events/classes/AbstractFetchEvent.ts>AbstractFetchEvent

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Latest
class AbstractFetchEvent
Abstract
import { AbstractFetchEvent } from "https://deno.land/x/keywork@v6.2.1/events/classes/AbstractFetchEvent.ts";

Constructors

new
AbstractFetchEvent(eventType?, unnamed 1: IsomorphicFetchEventInit)

Properties

readonly
clientId: string
readonly
handled: Promise<undefined>
originalURL: string

The original URL associated with the IsomorphicFetchEvent.

readonly
preloadResponse: Promise<any>
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.

readonly
resultingClientId: string

Methods

deprecated
passThroughOnException(): void

Prevents a runtime error response when the Worker script throws an unhandled exception.

deprecated
respondWith(_response: Response): void

Intercepts the request and allows the Worker to send a custom response.