Skip to main content
Module

x/hono/mod.ts>RegExpRouter

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