deno.com

interface Deno.ServeOptions

Options which can be set when calling Deno.serve.

Type Parameters #

#Addr extends Deno.Addr = Deno.Addr

Properties #

#signal: AbortSignal
optional

An AbortSignal to close the server and all connections.

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

The handler to invoke when route handlers throw an error.

#onListen: (localAddr: Addr) => void
optional

The callback which is called when the server starts listening.