Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Deno.ServeUnixOptions
import { type Deno } from "https://deno.land/x/deno@v1.40.5/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.