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

x/superdeno/mod.ts>superdeno

Super-agent driven library for testing Deno HTTP servers.
Go to Latest
function superdeno
import { superdeno } from "https://deno.land/x/superdeno@4.8.0/mod.ts";

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).

Accepts an optional second argument of secure to determine whether connections should be over HTTPS (true) or HTTP (false)

If SuperDeno identifies that a server is not already listening for connections, then one is bound to an ephemeral port for you so there is no need to keep track of ports.

Parameters

app:
| string
| RequestHandlerLike
| ListenerLike
| ServerLike
optional
secure: boolean