proxy
Module: proxy
Section titled “Module: proxy”Contents
Section titled “Contents”Functions
forward_http1_requests- Forwards HTTP/1 requests while replacing caller-supplied attribution headers.
firma_http::proxy::forward_http1_requests
Section titled “firma_http::proxy::forward_http1_requests”Function
Forwards HTTP/1 requests while replacing caller-supplied attribution headers.
on_request receives the parsed method and request target before each request is
forwarded. The target may contain sensitive query or fragment data; callers are
responsible for sanitizing it before logging.
Errors
Section titled “Errors”Returns an I/O error when reading or writing fails, or [io::ErrorKind::InvalidData]
when a header block is not UTF-8, exceeds the size limit, or has invalid chunk framing.
fn forward_http1_requests<R, W, F>(client: & mut R, upstream: & mut W, attribution_headers: &std::collections::BTreeMap<String, String>, on_request: F) -> io::Result<()>