import { http } from "https://deno.land/x/cav@0.2.0-alpha.7/deps.ts";
Classes
Used to construct an HTTP server. |
Enums
Standard HTTP status codes. |
Variables
A record of all the status codes text. |
Functions
Set the cookie header with empty value in the headers to delete it | |
Parse cookies of a header | |
A type guard that determines if the status code is a client error. | |
A type guard that determines if the status code is an error. | |
A type guard that determines if the status code is informational. | |
A type guard that determines if the status code is a redirection. | |
A type guard that determines if the status code is a server error. | |
A type guard that determines if the status code is successful. | |
Serves HTTP requests with the given handler. | |
Constructs a server, accepts incoming connections on the given listener, and handles requests on these connections with the given handler. | |
Serves HTTPS requests with the given handler. | |
Set the cookie header properly in the headers |
Interfaces
Information about the connection a request arrived on. | |
Additional serve options. | |
Options for running an HTTP server. | |
Type Aliases
An HTTP status that is a client error (4XX). | |
An HTTP status that is an error (4XX and 5XX). | |
A handler for HTTP requests. Consumes a request and connection information and returns a response. | |
An HTTP status that is a informational (1XX). | |
An HTTP status that is a redirect (3XX). | |
An HTTP status that is a server error (5XX). | |
An HTTP status that is a success (2XX). |