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

x/superdeno/test/deps.ts>Oak.Router#forEach

Super-agent driven library for testing Deno HTTP servers.
Latest
method Oak.Router.prototype.forEach
import { Oak } from "https://deno.land/x/superdeno@4.9.0/test/deps.ts";
const { Router } = Oak;

Iterate over the routes currently added to the router, calling the callback function for each value.

Parameters

callback: (
value1: Route<string>,
value2: Route<string>,
router: this,
) => void
optional
thisArg: any = [UNSUPPORTED]