Skip to main content
Module

x/acorn/util.ts

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

Classes

A class which provides an "unwrapped" promise.

Functions

A type guard which determines if the value can be used as BodyInit for creating a body of a Response.

Determines if a string looks like HTML.

Determines if the string looks like JSON.

Generate a Response based on the original Request and an HttpError. It will ensure negotiation of the content type and will provide the stack trace in errors that are marked as exposeable.