#[request_querys]
Expand description
Extracts all request query parameters into a collection variable.
This attribute macro retrieves all available request query parameters from the URL request query string and makes them available as a collection for comprehensive request query parameter access.
ยงUsage
use hyperlane::*;
use hyperlane_macros::*;
// For URL like "/search?q=rust&limit=10&sort=date"
#[request_querys(all_params)]
async fn search_with_params(ctx: Context) {
for (key, value) in all_params {
// Process each request query parameter
}
}
The macro accepts a variable name that will contain all request query parameters. The variable will be available as a collection in the function scope.