Skip to main content
Module

x/acorn/mod.ts>HandledEvent

A focused RESTful server framework for Deno 🌰🦕
Go to Latest
class HandledEvent
extends Event
import { HandledEvent } from "https://deno.land/x/acorn@0.4.0/mod.ts";

A DOM like event emitted by the router when a request has been handled.

This can be used to provide logging and reporting for the router.

Constructors

new
HandledEvent(eventInitDict: HandledEventInit)

Properties

readonly
measure: PerformanceMeasure

The performance measure from the start of handling the route until it finished, which can provide timing information about the processing.

readonly
request: Request

The Request that was handled.

readonly
response: Response

The Response that was handled.

readonly
route: Route | undefined

The Route that was matched.