x/oak/types.ts

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
interface ServeOptions
import { type ServeOptions } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v17.1.2/types.ts?s=ServeOptions";

Properties

optional
port: number
[src]
optional
hostname: string
[src]
optional
signal: AbortSignal
[src]
optional
reusePort: boolean
[src]
optional
onError: (error: unknown) => Response | Promise<Response>
[src]
optional
onListen: (params: { hostname: string; port: number; }) => void
[src]