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

x/acorn/request_event_cfw.ts>CloudflareWorkerRequestEvent

A focused RESTful server framework for Deno 🌰🦕
Latest
class CloudflareWorkerRequestEvent
implements RequestEvent<Env>
import { CloudflareWorkerRequestEvent } from "https://deno.land/x/acorn@1.1.1/request_event_cfw.ts";

The implementation of the RequestEvent interface for Cloudflare Workers.

Constructors

new
CloudflareWorkerRequestEvent()

Type Parameters

optional
Env extends Record<string, string> = Record<string, string>

Properties

readonly
addr: Addr
readonly
env: Env
readonly
id: string
readonly
request: Request
readonly
responded: boolean
readonly
response: Promise<Response>
readonly
url: URL

Methods

error(reason?: any): void
respond(response: Response): void
[Symbol.for("nodejs.util.inspect.custom")](
depth: number,
options: any,
inspect: (value: unknown, options?: unknown) => string,
): any