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

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

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

Iterate over the routes currently added to the router. To be compatible with the iterable interfaces, the key is set to the value of the route.

Returns

IterableIterator<Route<string>>