Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface ServerInit
implements Partial<Deno.ListenOptions>
Deprecated
Deprecated

(will be removed after 1.0.0) Use Deno.ServeInit instead.

import { type ServerInit } from "https://deno.land/x/fathym_eac_runtime@v0.0.140/src/src.deps.ts";

Options for running an HTTP server.

Properties

handler: Handler

The handler to invoke for individual HTTP requests.

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

The handler to invoke when route handlers throw an error.

The default error handler logs and returns the error in JSON format.