use crateResult;
pub
/// Parse a blob of raw HTTP-style header text into `(name, value)` pairs.
///
/// Splits on newlines, then splits each line on the first colon and trims
/// whitespace from both sides. Lines without a colon are silently skipped.
///
/// This is shared by the various `FromStr` impls so they all agree on what
/// counts as a parseable line.
pub + Clone
/// Collect `(name, value)` string pairs from an [`http::HeaderMap`],
/// silently skipping any entries whose value is not valid UTF-8.
///
/// Returns a `Vec` (rather than an iterator) because [`http::header::Iter`]
/// is not `Clone`, but `RateLimit::extract` needs to iterate twice.
pub