Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Go to Latest
class AbstractFetchEvent
Abstract
import { AbstractFetchEvent } from "https://deno.land/x/keywork@v6.0.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: globalThis.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 KeyworkRouter.

readonly
resultingClientId: string

Methods

deprecated
passThroughOnException(): void

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

deprecated
respondWith(_response: globalThis.Response): void

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