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

x/oak/router.ts>Router#[Symbol.iterator]

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
method Router.prototype.[Symbol.iterator]
import { Router } from "https://deno.land/x/oak@v12.2.0/router.ts";

Provide an iterator interface that iterates over the routes registered with the router.

Returns

IterableIterator<Route<string, RouteParams<string>, RS>>