Skip to main content
Module

x/superoak/deps.ts

HTTP assertions for Oak made easy via SuperDeno. 🐿 🦕
Go to Latest
import * as superoak from "https://deno.land/x/superoak@4.8.0/deps.ts";

Classes

c
Server
deprecated

Used to construct an HTTP server.

The SuperDeno Test object extends the methods provided by superagent to provide a high-level abstraction for testing HTTP, while still allowing you to drop down to the lower-level API provided by superagent.

Functions

Found free port. If the port is not available, returns the port If the port is not available, returns a random available port Requires --allow-net flag

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

Provides methods for making requests to the configured server using the passed url string, and returning a new Test.