Skip to main content

Module parsed_request

Module parsed_request 

Source
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 ParsedRequest the matcher can use.