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.0.3/deps.ts";

Classes

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

Enums

Standard HTTP status codes.

Variables

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 the full Content-Type header string. Returns undefined if not resolvable.

Create an instance of an HttpError based on the status code provided.

A type guard that determines if the value is an HttpError or not.