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

std/http/mod.ts>ServeInit

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface ServeInit
implements Partial<Deno.ListenOptions>
import { type ServeInit } from "https://deno.land/std@0.138.0/http/mod.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.