API reference: Middleware & helpers
Built-in middleware, the every/some/except composition primitives, typed dependencies, config validation, structured logging, the startup banner, and connection-info helpers. Everything on this page is exported from the root @daloyjs/core barrel. See the API reference overview for the full module map.
Platform hygieneapplied by secureDefaults
requestId()secureHeaders()
Traffic shaping
rateLimit()loadShedding()compression()
Authentication & access
bearerAuth()jwk()requireScopes()csrf()
Route handlertyped ctx, typed response
Built-in middleware
Composition primitives
Dependencies (typed DI chain)
Configuration
Logging
Startup banner
Connection info & proxy posture
Subdomains (Public-Suffix-aware)
Next up: security & auth helpers.