Skip to main content
Home
This release is 7 versions behind 17.1.4 — the latest version of @oak/oak. Jump to latest

@oak/oak@16.0.0
Built and signed on GitHub Actions

A middleware framework for handling HTTP with Deno, Node.js, Bun and Cloudflare Workers 🐿️🦕🥟⚙️

This package works with Cloudflare Workers, Node.js, Deno, Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
94%
Published
a year ago (16.0.0)
interface ListenOptionsBase

Base interface for application listening options.

Properties

optional
port: number

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

optional
hostname: string

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

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

optional
secure: false

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

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@oak/oak

Import symbol

import { type ListenOptionsBase } from "@oak/oak/application";
or

Import directly with a jsr specifier

import { type ListenOptionsBase } from "jsr:@oak/oak/application";

Add Package

pnpm i jsr:@oak/oak
or (using pnpm 10.8 or older)
pnpm dlx jsr add @oak/oak

Import symbol

import { type ListenOptionsBase } from "@oak/oak/application";

Add Package

yarn add jsr:@oak/oak
or (using Yarn 4.8 or older)
yarn dlx jsr add @oak/oak

Import symbol

import { type ListenOptionsBase } from "@oak/oak/application";

Add Package

npx jsr add @oak/oak

Import symbol

import { type ListenOptionsBase } from "@oak/oak/application";

Add Package

bunx jsr add @oak/oak

Import symbol

import { type ListenOptionsBase } from "@oak/oak/application";