Skip to main content
Module

x/acorn/mod.ts>RouterListenEvent

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

The event class that is emitted when the router starts listening.

Constructors

new
RouterListenEvent(eventInitDict: RouterListenEventInit)

Properties

readonly
hostname: string

The hostname that is being listened on.

readonly
listener: Listener

A reference to the Listener being listened to.

readonly
port: number

The port that is being listened on.

readonly
secure: boolean

A flag to indicate if the router believes it is running in a secure context (e.g. TLS/HTTPS).