Function matches_reader
pub async fn matches_reader(
reader: impl AsyncRead + Unpin,
needle: &str,
) -> Result<bool, Error>Available on crate feature
inspect only.Expand description
Search the same UTF-8-debug-or-hex representation as rama_utils::fmt::utf8_or_hex.
Memory is bounded by the query and a 16 KiB read buffer. Both representations are
matched in one pass; EOF determines whether the complete payload is valid UTF-8.