Skip to main content
Module

x/acorn/deps.ts

A focused RESTful server framework for Deno 🌰🦕
Go to Latest
import * as acorn from "https://deno.land/x/acorn@0.4.0/deps.ts";

Classes

The base class that all derivative HTTP extend, providing a status and an expose property.

Provides an way to manage cookies in a request and response on the server as a single iterable collection, as well as the ability to sign and verify cookies to prevent tampering.

Enums

Standard HTTP status codes.

Variables

A namespace that contains each error constructor. Each error extends HTTPError and provides .status and .expose properties, where the .status will be an error Status value and .expose indicates if information, like a stack trace, should be shared in the response.

A record of all the status codes text.

Functions

Returns an array of media types accepted by the request, in order of preference. If there are no media types supplied in the request, then any media type selector will be returned.

Given an extension or media type, return a full Content-Type or Content-Disposition header value.

A factory function which provides a way to create errors. It takes up to 3 arguments, the error Status, an message, which defaults to the status text and error options, which includes the expose property to set the .expose value on the error.

Creates a Promise with the reject and resolve functions placed as methods on the promise object itself.

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 value is an HttpError or not.

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.

Type Aliases

Types of data that can be signed cryptographically.

Types of keys that can be used to sign data.