Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/doa/test/test_deps.ts

A middleware framework for Deno's http serve🦕. Transplanted from Koa with ❤️
Latest
import * as doa from "https://deno.land/x/doa@v1.0.0/test/test_deps.ts";

Classes

Create a new Accepts object for the given headers.

BufReader implements buffering for a Reader object.

BufWriter implements buffering for an deno.Writer object. If an error occurs writing to a Writer, no more data will be accepted and all subsequent writes, and flush(), will return the error. After all data has been written, the client should call the flush() method to guarantee all data has been forwarded to the underlying deno.Writer.

Reader utility for strings

Writer utility for buffering string chunks

Functions

Make an assertion, if not true, then throw.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Make an assertion that actual and expected are strictly equal. If not then throw.

Executes a function, expecting it to throw. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted.

Executes a function which returns a promise, expecting it to throw or reject. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted.

Create a HTTP server

Create an HTTPS server with given options

Takes a a url string, http.Server, a request handling function, or an object that implements an app.listen() method (which mirrors the http.serve interface).

Interfaces

Interface of HTTP server response. If body is a Reader, response would be chunked. If body is a string, it would be UTF-8 encoded by default.

Type Aliases

Options for creating an HTTP server.

Options for creating an HTTPS server.