Skip to main content
Module

x/acorn/router.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.7.1/router.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
duration: number

Highest resolution timing available on the platform of the time to handle the request/response by acorn in milliseconds.

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.