Skip to main content
Module

x/dactyl/deps.ts>Application#listen

Web framework for Deno, built on top of Oak 🦇
Latest
method Application.prototype.listen
import { Application } from "https://deno.land/x/dactyl@v0.1.0-alpha/deps.ts";

Start listening for requests, processing registered middleware on each request. If the options .secure is undefined or false, the listening will be over HTTP. If the options .secure property is true, a .certFile and a .keyFile property need to be supplied and requests will be processed over HTTPS.

Parameters

addr: string

Returns

Promise<void>

Start listening for requests, processing registered middleware on each request. If the options .secure is undefined or false, the listening will be over HTTP. If the options .secure property is true, a .certFile and a .keyFile property need to be supplied and requests will be processed over HTTPS.

Parameters

options: ListenOptions

Returns

Promise<void>