Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hono/router/linear-router/router.ts>LinearRouter

Web Framework built on Web Standards
Extremely Popular
Go to Latest
class LinearRouter
implements Router<T>
import { LinearRouter } from "https://deno.land/x/hono@v4.2.7/router/linear-router/router.ts";

Properties

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

Methods

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