Finds a free port that fetch is also permitted to connect to.
Duck typing to determine if is Oak application like.
Generates a random number between min and max
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().
Generated using TypeDoc
Ports within the below 1024-49151 range that the WHATWG Fetch Standard forbids clients from connecting to.
Deno.listenbinds these ports without complaint, butfetch(which SuperDeno uses under the hood) rejects requests to them since Deno 2.9.0, so they must never be picked for the ephemeral test server.REF: https://fetch.spec.whatwg.org/#port-blocking