API Overview
Main Package
Section titled “Main Package”jsr:@bronti/wooter exports:
Wooterc(cheminhelpers)useandmiddlewareOptionResult- Error exports (
WooterError,ControlFlowBreak, type guards, lifecycle errors) - Response helpers (
makeRedirect,makeError) - Public TypeScript types
Entry Points
Section titled “Entry Points”From deno.jsonc:
.-> main public API./chemin./option./result./types./error./response./use
Primary Runtime Type
Section titled “Primary Runtime Type”Wooter<TData, TParentParams> is the main typed router.
Core methods:
route(path, method, handler)route(path, methodMap)use(middleware)router(basePath)notFound(handler)fetch(request)
Utility Exports
Section titled “Utility Exports”Response helpers:
makeRedirect(location, init?)makeError(status, message?, headers?)Middleware helper:
middleware<TNextData>(handler)Handler wrapper helper:
use(middlewareHandler, routeHandler)For full API symbols and signatures, see the hosted API docs: https://jsr.io/@bronti/wooter/doc