Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/superoak/src/superoak.ts>superoak

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

Takes a url string (for an already running Oak server), or an Oak Application object.

When passing a url string, accepts an optional second argument of secure to determine whether connections should be over HTTPS (true) or HTTP (false).

When passing an Oak Application, SuperOak will automatically handle the creation of a server, binding to a free ephemeral port and closing of the server on a call to .end().

Parameters

app: string | any
optional
secure: boolean