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

x/cav/util.ts

A server framework for Deno
Go to Latest
import * as cav from "https://deno.land/x/cav@0.0.24/util.ts";

Variables

Serves HTTP requests with the given handler. (Stacks and Rpcs are handlers.) You can specify an object with a port and hostname option, which is the address to listen on. The default is port 8000 on hostname "0.0.0.0". This is a re-export of the serve() function from https://deno.land/std/http/server.ts.

Functions

Constructs a new server instance. This is a simple function wrapper around the Server constructor from https://deno.land/std/http/server.ts.

Type Aliases

Options for serving an http handler. This is a re-export of the ServeInit type from https://deno.land/std/server.ts.

An http server. This is a re-export of the Server type from https://deno.land/std/http/server.ts.

Options for running an http server. This is a re-export of the ServerInit type from https://deno.land/std/http/server.ts.