import { type Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.ns.d.ts";
const { ServeOptions } = Deno;
Options which can be set when calling Deno.serve
.
Properties
optional
signal: AbortSignalAn AbortSignal
to close the server and all connections.
The handler to invoke when route handlers throw an error.
optional
onListen: (localAddr: Addr) => voidThe callback which is called when the server starts listening.