Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/aleph/server/types.ts>ServeInit

The Full-stack Framework in Deno.
Very Popular
Go to Latest
interface ServeInit
implements Partial<Deno.ListenOptions>
Re-export
import { type ServeInit } from "https://deno.land/x/aleph@1.0.0-beta.42/server/types.ts";

Additional serve options.

Properties

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: { hostname: string; port: number; }) => void

The callback which is called when the server started listening