Module

x/hono/mod.ts>RegExpRouter

Web Framework built on Web Standards
Extremely Popular
Go to Latest
class RegExpRouter
implements Router<T>
import { RegExpRouter } from "https://dotland.deno.dev/x/hono@v4.2.6/mod.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>