Skip to main content

Module server

Module server 

Source
Expand description

Framework-agnostic helpers for serving the QUERY method.

These helpers work with http::HeaderMap and a method string, so they plug into any server stack (axum, hyper, actix, …). See examples/axum_server.rs for a complete axum integration.

Enums§

QueryRejection
The reason an incoming request is not a valid QUERY, with the HTTP status code a server should respond with (RFC 10008 §2).

Functions§

accept_query_header
Builds an Accept-Query header value advertising the supported query media types as a Structured Fields List (RFC 10008 §3).
check_query_request
Validates an incoming request as a QUERY per RFC 10008.