← Back to index
interface ServerInit
extends Partial<Deno.ListenOptions>

Properties

🔗
handler: Handler

The handler to invoke for individual HTTP requests.

🔗
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.