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

x/deno/cli/tsc/dts/lib.deno.ns.d.ts>Deno.ServeUnixOptions

A modern runtime for JavaScript and TypeScript.
Latest
interface Deno.ServeUnixOptions
import { type Deno } from "https://deno.land/x/deno@v1.41.0/cli/tsc/dts/lib.deno.ns.d.ts";
const { ServeUnixOptions } = Deno;

Properties

path: string

The unix domain socket path to listen on.

optional
signal: AbortSignal

An AbortSignal to close the server and all connections.

optional
onError: (error: unknown) => Response | Promise<Response>

The handler to invoke when route handlers throw an error.

optional
onListen: (params: { path: string; }) => void

The callback which is called when the server starts listening.