Expand description
HTTP request and response inspector component.
Provides detailed visual inspection of HTTP requests and responses
for debugging purposes. Unlike the simple one-line logging in logging.rs,
this module provides comprehensive multi-line output showing headers,
body previews, and timing information.
§Feature Gating
This module is designed for debug output. In production, inspectors should only be called when debug mode is explicitly enabled.
ⓘ
if output.is_debug_enabled() {
let inspector = RequestInspector::new(OutputMode::Rich);
println!("{}", inspector.inspect(&request_info));
}Structs§
- Request
Info - HTTP request information for inspection.
- Request
Inspector - HTTP request inspector.
- Response
Info - HTTP response information for inspection.
- Response
Inspector - HTTP response inspector.