MCPcopy Create free account
hub / github.com/denoland/std / createNode

Function createNode

http/unstable_route.ts:205–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203}
204
205function createNode(): RouteNode {
206 return {
207 staticChildren: Object.create(null) as Record<string, RouteNode>,
208 hasStaticChildren: false,
209 paramChild: null,
210 wildcardChild: null,
211 routes: [],
212 minIndex: Number.POSITIVE_INFINITY,
213 };
214}
215
216/**
217 * Routes requests to different handlers based on the request path and method.

Callers 2

routeRadixFunction · 0.85
insertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected