Module

x/hono/mod.ts>LinearRouter

Lightweight, Ultrafast, Web Standards
Extremely Popular
Go to Latest
class LinearRouter
implements Router<T>
import { LinearRouter } from "https://dotland.deno.dev/x/hono@v3.9.2/mod.ts";

Properties

name: string
routes: [string, string, T][]

Methods

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