Skip to main content
Module

x/cav/mod.ts>server

A server framework for Deno
Go to Latest
function server
import { server } from "https://deno.land/x/cav@0.0.8/mod.ts";

Creates a Server using the provided ServerInit. Note that there is no "onError" init option; errors that bubble up to the Server level are logged and a 500 Response is sent back to the client. You should handle errors as close as possible to where the error occurred, for example using the Rpc "onError" init option.

Type Parameters

H extends http.Handler