Expand description
Server-side helpers for apimock_routing::ParsedRequest.
§Why this file exists after the 5.0 split
ParsedRequest (the data) now lives in apimock-routing so the
matcher crate can depend on it without pulling in hyper/body I/O.
The two operations that touch HTTP — building a ParsedRequest
from an incoming hyper request, and logging one to stdout — are
server-layer activities, so they stay here as free functions.
Functions§
- capture_
in_ log - Emit a single log line describing the request.
- parsed_
request_ from - Consume an incoming hyper request into a
ParsedRequestthe matcher can use.