Skip to main content
Module

x/cav/mod.ts>ServerInit

A server framework for Deno
Go to Latest
interface ServerInit
implements Omit<http.ServerInit, "onError">
import { type ServerInit } from "https://deno.land/x/cav@0.0.8/mod.ts";

The standard http.ServerInit type with a type parameter indicating the type of the handler this server is serving. Additionally, the "onError" property has been omitted; errors in Cav should be handled at the Rpc level, as close as possible to where the error occurred. When an error bubbles up to the Server level, it will be logged and a 500 Response will be sent to the client.

Type Parameters

optional
H extends http.Handler = http.Handler

Properties

optional
port: number

The port to bind to. Default: 8000

handler: H