Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback


A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
interface ListenOptionsBase
import { type ListenOptionsBase } from "";


port: number

The port to listen on. If not specified, defaults to 0, which allows the operating system to determine the value.

hostname: string

A literal IP address or host name that can be resolved to an IP address. If not specified, defaults to

Note about While listening works on all platforms, the browsers on Windows don't work with the address You should show the message like server running on localhost:8080 instead of server running on if your program supports Windows.

secure: false
signal: AbortSignal

An optional abort signal which can be used to close the listener.