Skip to main content

Module extract

Module extract 

Source
Expand description

Parameter-driven extraction for handler arguments.

The route attribute macro inspects each function parameter and emits a call to one of the helpers below. Result: handlers receive their dependencies and request data as typed arguments — no ctx.inject() service-locator pattern, no manual ctx.param(...).parse().

Structs§

Inject
Constructor-style dependency injection wrapper. Resolved from the frozen DI container at request entry; zero allocation, zero lock.

Functions§

extract_body_json
extract_body_validated
extract_header
extract_param
extract_query
extract_query_validated