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

x/hono/router/reg-exp-router/index.ts>RegExpRouter

Ultrafast web framework for the Edge
Very Popular
Go to Latest
class RegExpRouter
implements Router<T>
import { RegExpRouter } from "https://deno.land/x/hono@v3.0.0-rc.12/router/reg-exp-router/index.ts";

Constructors

new
RegExpRouter()

Properties

optional
middleware: Record<string, Record<string, T[]>>
optional
routes: Record<string, Record<string, T[]>>

Methods

private
buildAllMatchers(): Record<string, Matcher<T>>
private
buildMatcher(method: string): Matcher<T> | null
add(
method: string,
path: string,
handler: T,
)
match(method: string, path: string): Result<T> | null