Module

x/hono/router/trie-router/node.ts>Node

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
class Node
import { Node } from "https://dotland.deno.dev/x/hono@v3.12.6/router/trie-router/node.ts";

Constructors

new
Node(
method?: string,
handler?: T,
children?: Record<string, Node<T>>,
)

Properties

children: Record<string, Node<T>>
methods: Record<string, HandlerSet<T>>[]
name: string
order: number
params: Record<string, string>
patterns: Pattern[]

Methods

private
gHSets(
node: Node<T>,
method: string,
nodeParams: Record<string, string>,
params: Record<string, string>,
): HandlerParamsSet<T>[]
insert(
method: string,
path: string,
handler: T,
): Node<T>
search(method: string, path: string): [[T, Params][]]