Noir::JSHttpRouteExtractor
Extracts routes from direct Node.js core http/https createServer handlers.
This covers the stdlib shape where applications branch on req.method and req.url/pathname inside a single request listener, rather than registering routes through a framework DSL.
Constants
(req: Request): Promise<Response> => / async req => read forward
from the head: a backward walk from => stops at a TypeScript return
type instead of the parameter list.
Bun.serve(...) / Deno.serve(...) call openers, keyed by runtime.
const NAME = new URLPattern({ pathname: "/p" }) or new URLPattern("/p").
Class methods
Query and body params a Fetch-API / node:http handler reads from a
request spelled req: searchParams.get("q"), URLSearchParams,
JSON.parse(...), await req.json() / req.formData(). Shared with
the file-routed serverless adapters, which normalize their request
name to req first.
Runtime-native servers: Bun.serve({ routes, fetch }) and
Deno.serve(handler) / Deno.serve(options, handler) /
Deno.serve({ handler }). The fetch handler body branches on
req.method / new URL(req.url).pathname exactly like a createServer
listener, so it goes through the same route-hit scan; Bun's routes
map is read key by key.