Skip to main content

query_handler

Function query_handler 

Source
pub async fn query_handler(
    req: HttpRequest,
    payload: Payload,
    config: Data<AppConfig>,
) -> Result<HttpResponse>
Expand description

/query — dedicated echo endpoint for the QUERY method (RFC 9430). QUERY is a safe, idempotent method whose request body carries the query, so this echoes URL args and the parsed body (form/JSON/multipart), exactly like /post.