Skip to content

v1.6.0

Latest

Choose a tag to compare

@seanmonstar seanmonstar released this 01 Dec 18:54

Features

  • Add HeaderMap::retain() to keep header values that match a predicate.

Fixes

  • Fix HeaderValue string conversions to reject non-ASCII characters.
  • Fix validation of long header names passed to HeaderMap as strings.
  • Fix HeaderName::from_lowercase() and from_static() to reject double quotes.
  • Fix HeaderMap iterators that could overestimate their remaining length in size_hint().
  • Fix header::OccupiedEntry::insert_mult() panicking when replacing three or more values.
  • Fix Uri parsing to recognize http and https regardless of case.
  • Fix Uri formatting to omit the * path when a scheme and authority are present.
  • Fix Authority::from_static() to reject trailing bytes left over after parsing.

Performance

  • Reduce the size of HeaderMap.
  • Reduce integer conversions to HeaderValue to one allocation.
  • Speed up URI parsing by optimizing authority scanning and scheme detection.

The whole thing

New Contributors

Full Changelog: v1.5.0...v1.6.0