Module

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

Ultrafast web framework for the Edges
Very Popular
Go to Latest
class RegExpRouter
implements Router<T>
import { RegExpRouter } from "https://dotland.deno.dev/x/hono@v3.2.5/router/reg-exp-router/router.ts";

Constructors

new
RegExpRouter()

Properties

optional
middleware: Record<string, Record<string, T[]>>
name: string
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