Skip to main content
Module

x/cav/deps.ts>http.ServeInit

A server framework for Deno
Go to Latest
interface http.ServeInit
implements Partial<Deno.ListenOptions>
import { type http } from "https://deno.land/x/cav@0.0.21/deps.ts";
const { ServeInit } = http;

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.