Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hono/router/static-router/index.ts>StaticRouter

Ultrafast web framework for Cloudflare Workers, Deno, Bun, and Node.js. Fast, but not only fast.
Extremely Popular
Go to Latest
class StaticRouter
implements Router<T>
import { StaticRouter } from "https://deno.land/x/hono@v3.0.0-rc.5/router/static-router/index.ts";

Constructors

new
StaticRouter()

Properties

middleware: Record<string, Result<T>>
routes: Record<string, Record<string, Result<T>>>

Methods

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