import * as cav from "https://deno.land/x/cav@0.2.3/deps.ts";
Classes
An interface to the web assembly structure of a built module graph. | |
Used to construct an HTTP server. |
Enums
Standard HTTP status codes. |
Variables
A record of all the status codes text. | |
Functions
Converts given base64url encoded data back to original | |
Encodes a given ArrayBuffer or string into a base64url representation | |
Generate a single file JavaScript bundle of the root module and its dependencies. | |
Transpile TypeScript (or JavaScript) into JavaScript, returning a promise which resolves with a map of the emitted files. | |
Serves the files under the given directory root (opts.fsRoot). | |
Returns an HTTP Response with the requested file as the body. | |
A Deno specific loader function that can be passed to the
| |
Parse a module based on the supplied information and return its analyzed representation. If an error is encountered when parsing, the function will throw. | |
Decodes | |
Encodes | |
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 | |
Determines the common path from a set of paths, using an optional separator, which defaults to the OS default separator. | |
Convert a glob string to a regular expression. | |
Test whether the given string is a glob | |
Like join(), but doesn't collapse "**/.." when | |
Like normalize(), but doesn't collapse "**/.." when |
Interfaces
The output of the | |
Options which can be set when using the | |
Interface for serveDir options. | |
Interface for serveFile options. | |
Additional meta data that is used to enrich the output of the module graph. | |
The plain-object representation of a module graph that is suitable for serialization to JSON. | |
Information about the connection a request arrived on. | |
Additional serve options. | |
Options for running an HTTP server. | |
A parsed path object generated by path.parse() or consumed by path.format(). |
Type Aliases
Algorithm used to determine etag | |
The kind of module. | |
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). | |