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