Module

x/hono/router/pattern-router/index.ts>PatternRouter

Ultrafast web framework for the Edges
Very Popular
Go to Latest
class PatternRouter
implements Router<T>
import { PatternRouter } from "https://dotland.deno.dev/x/hono@v3.7.0-rc.1/router/pattern-router/index.ts";

Properties

private
dNames: Record<string, number>
private
routes: Route<T>[]
name: string

Methods

add(
method: string,
path: string,
handler: T,
)
match(method: string, path: string): Result<T> | null