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§
- Query
Rejection - 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-Queryheader 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.