Module

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

Fast, Lightweight, Web-standards
Very Popular
Go to Latest
class RegExpRouter
implements Router<T>
import { RegExpRouter } from "https://dotland.deno.dev/x/hono@v4.1.0/router/reg-exp-router/index.ts";

Constructors

new
RegExpRouter()

Properties

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

Methods

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