rama_http/layer/json_capture/mod.rs
1//! Streaming request or response body utilities for capturing selected JSON
2//! values while forwarding the body unchanged.
3//!
4//! [`JsonCaptureBody`] is useful when middleware needs to observe or decode
5//! small selected JSON values but still pass the full body downstream. It uses
6//! [`rama_json::capture`] under the hood: unmatched input is processed as a
7//! stream, while selected values are bounded by `max_capture_bytes`.
8
9mod body;
10
11pub use body::JsonCaptureBody;
12
13#[cfg(test)]
14mod tests;