1# 0.2.12 (March 4, 2024) 2 3* Add methods to allow trying to allocate in the `HeaderMap`, returning an error if oversize instead of panicking. 4* Fix `HeaderName::from_lowercase` that could allow NUL bytes in some cases. 5 6# 0.2.11 (November 13, 2023) 7 8* Fix MIRI error in `header::Iter`. 9 10# 0.2.10 (November 10, 2023) 11 12* Fix parsing of `Authority` to handle square brackets in incorrect order. 13* Fix `HeaderMap::with_capacity()` to handle arithmetic overflow. 14 15# 0.2.9 (February 17, 2023) 16 17* Add `HeaderName` constants for `cache-status` and `cdn-cache-control`. 18* Implement `Hash` for `PathAndQuery`. 19* Re-export `HeaderName` at crate root. 20 21# 0.2.8 (June 6, 2022) 22 23* Fix internal usage of uninitialized memory to use `MaybeUninit` inside `HeaderName`. 24 25# 0.2.7 (April 28, 2022) 26 27* MSRV bumped to `1.49`. 28* Add `extend()` method to `Extensions`. 29* Add `From<Authority>` and `From<PathAndQuery>` impls for `Uri`. 30* Make `HeaderName::from_static` a `const fn`. 31 32# 0.2.6 (December 30, 2021) 33 34* Upgrade internal `itoa` dependency to 1.0. 35 36# 0.2.5 (September 21, 2021) 37 38* Add `is_empty()` and `len()` methods to `Extensions`. 39* Add `version_ref()` method to `request::Builder`. 40* Implement `TryFrom<Vec<u8>>` and `TryFrom<String>` for `Authority`, `Uri`, `PathAndQuery`, and `HeaderName`. 41* Make `HeaderValue::from_static` a `const fn`. 42 43# 0.2.4 (April 4, 2021) 44 45* Fix `Uri` parsing to allow `{`, `"`, and `}` in paths. 46 47# 0.2.3 (January 7, 2021) 48 49* Upgrade internal (private) `bytes` dependency to 1.0. 50 51# 0.2.2 (December 14, 2020) 52 53* Fix (potential double) panic of (`HeaderMap`) `OccupiedEntry::remove_entry` and 54 `remove_entry_mult` when multiple values are present. ([#446], [#449] dekellum) 55* Safety audits of (priv) `ByteStr` and refactor of `Authority` ([#408], [#414] sbosnick) 56* Fix `HeaderName` to error instead of panic when input is too long ([#432] [#433] acfoltzer) 57* Allow `StatusCode` to encode values 100-999 without error. Use of the 58 unclassified range 600-999 remains discouraged. ([#144], [#438], [#443] quininer dekellum) 59* Add `String` and `&String` fallible conversions to `PathAndQuery` ([#450] mkindahl) 60* Fix `Authority` (and `Uri`) to error instead of panic on unbalanced brackets 61 ([#435], [#445] aeryz) 62 63# 0.2.1 (March 25, 2020) 64 65* Add `extensions_ref` and `extensions_mut` to `request::Builder` and `response::Builder`. 66 67# 0.2.0 (December 2, 2019) 68 69* Add `Version::HTTP_3` constant. 70* Add `HeaderValue::from_maybe_shared`, `HeaderValue::from_maybe_shared_unchecked`, `Uri::from_maybe_shared`, `Authority::from_maybe_shared`, and `PathAndQuery::from_maybe_shared`. 71* Change `request::Builder`, `response::Builder`, and `uri::Builder` to use by-value methods instead of by-ref. 72* Change from `HttpTryFrom` trait to `std::convert::TryFrom`. 73* Change `HeaderMap::entry` to no longer return a `Result`. 74* Change `HeaderMap::drain` iterator to match the behavior of `IntoIter`. 75* Change `Authority::port` to return an `Option<Port>` instead of `Option<u16>`. 76* Change `Uri::scheme` to return `Option<&Scheme>` instead of `Option<&str>`. 77* Change `Uri::authority` to return `Option<&Authority>` instead of `Option<&str>`. 78* Remove `InvalidUriBytes`, `InvalidHeaderNameBytes`, and `InvalidHeaderValueBytes` error types. 79* Remove `HeaderValue::from_shared`, `HeaderValue::from_shared_unchecked`, `Uri::from_shared`, `Authority::from_shared`, `Scheme::from_shared`, and `PathAndQuery::from_shared`. 80* Remove `Authority::port_part`. 81* Remove `Uri::scheme_part` and `Uri::authority_part`. 82 83# 0.1.20 (November 26, 2019) 84 85* Fix possible double-free if `header::Drain` iterator is `std::mem::forgot`en (#357). 86* Fix possible data race if multiple `header::ValueDrain`s are iterated on different threads (#362). 87* Fix `HeaderMap::reserve` capacity overflows (#360). 88* Fix parsing long authority-form `Uri`s (#351). 89 90# 0.1.19 (October 15, 2019) 91 92* Allow `%` in IPv6 addresses in `Uri` (#343). 93 94# 0.1.18 (July 26, 2019) 95 96* Fix compilation of `HeaderName` parsing on WASM targets (#324). 97* Implement `HttpTryFrom<HashMap>` for `HeaderMap` (#326). 98* Export `http::header::HeaderValue` as `http::HeaderValue`. 99 100# 0.1.17 (April 5, 2019) 101 102* Add `Error::inner_ref()` to view the kind of error (#303) 103* Add `headers_ref()` and `headers_mut()` methods to `request::Builder` and `response::Builder` (#293) 104 105# 0.1.16 (February 19, 2019) 106 107* Fix `Uri` to permit more characters in the `path` (#296) 108 109# 0.1.15 (January 22, 2019) 110 111* Fix `Uri::host()` to include brackets of IPv6 literals (#292) 112* Add `scheme_str` and `port_u16` methods to `Uri` (#287) 113* Add `method_ref`, `uri_ref`, and `headers_ref` to `request::Builder` (#284) 114 115# 0.1.14 (November 21, 2018) 116 117* Add `Port` struct (#252, #255, #265) 118* Introduce `Uri` builder (#219) 119* Empty `Method` no longer considered valid (#262) 120* Fix `Uri` equality when terminating question mark is present (#270) 121* Allow % character in userinfo (#269) 122* Support additional tokens for header names (#271) 123* Export `http::headers::{IterMut, ValuesMut}` (#278) 124 125# 0.1.13 (September 14, 2018) 126 127* impl `fmt::Display` for `HeaderName` (#249) 128* Fix `uri::Authority` parsing when there is no host after an `@` (#248) 129* Fix `Uri` parsing to allow more characters in query strings (#247) 130 131# 0.1.12 (September 7, 2018) 132 133* Fix `HeaderValue` parsing to allow HTABs (#244) 134 135# 0.1.11 (September 5, 2018) 136 137* Add `From<&Self>` for `HeaderValue`, `Method`, and `StatusCode` (#238) 138* Add `Uri::from_static` (#240) 139 140# 0.1.10 (August 8, 2018) 141 142* `impl HttpTryFrom<String>` for HeaderValue (#236) 143 144# 0.1.9 (August 7, 2018) 145 146* Fix double percent encoding (#233) 147* Add additional HttpTryFrom impls (#234) 148 149# 0.1.8 (July 23, 2018) 150 151* Add fuller set of `PartialEq` for `Method` (#221) 152* Reduce size of `HeaderMap` by using `Box<[Entry]>` instea of `Vec` (#224) 153* Reduce size of `Extensions` by storing as `Option<Box<AnyMap>>` (#227) 154* Implement `Iterator::size_hint` for most iterators in `header` (#226) 155 156# 0.1.7 (June 22, 2018) 157 158* Add `From<uN> for HeaderValue` for most integer types (#218). 159* Add `Uri::into_parts()` inherent method (same as `Parts::from(uri)`) (#214). 160* Fix converting `Uri`s in authority-form to `Parts` and then back into `Uri` (#216). 161* Fix `Authority` parsing to reject multiple port sections (#215). 162* Fix parsing 1 character authority-form `Uri`s into illegal forms (#220). 163 164# 0.1.6 (June 13, 2018) 165 166* Add `HeaderName::from_static()` constructor (#195). 167* Add `Authority::from_static()` constructor (#186). 168* Implement `From<HeaderName>` for `HeaderValue` (#184). 169* Fix duplicate keys when iterating over `header::Keys` (#201). 170 171# 0.1.5 (February 28, 2018) 172 173* Add websocket handshake related header constants (#162). 174* Parsing `Authority` with an empty string now returns an error (#164). 175* Implement `PartialEq<u16>` for `StatusCode` (#153). 176* Implement `HttpTryFrom<&Uri>` for `Uri` (#165). 177* Implement `FromStr` for `Method` (#167). 178* Implement `HttpTryFrom<String>` for `Uri` (#171). 179* Add `into_body` fns to `Request` and `Response` (#172). 180* Fix `Request::options` (#177). 181 182# 0.1.4 (January 4, 2018) 183 184* Add PathAndQuery::from_static (#148). 185* Impl PartialOrd / PartialEq for Authority and PathAndQuery (#150). 186* Add `map` fn to `Request` and `Response` (#151). 187 188# 0.1.3 (December 11, 2017) 189 190* Add `Scheme` associated consts for common protos. 191 192# 0.1.2 (November 29, 2017) 193 194* Add Uri accessor for scheme part. 195* Fix Uri parsing bug (#134) 196 197# 0.1.1 (October 9, 2017) 198 199* Provide Uri accessors for parts (#129) 200* Add Request builder helpers. (#123) 201* Misc performance improvements (#126) 202 203# 0.1.0 (September 8, 2017) 204 205* Initial release. 206 207[#144]: https://github.com/hyperium/http/issues/144 208[#408]: https://github.com/hyperium/http/pull/408 209[#414]: https://github.com/hyperium/http/pull/414 210[#432]: https://github.com/hyperium/http/issues/432 211[#433]: https://github.com/hyperium/http/pull/433 212[#438]: https://github.com/hyperium/http/pull/438 213[#443]: https://github.com/hyperium/http/pull/443 214[#446]: https://github.com/hyperium/http/issues/446 215[#449]: https://github.com/hyperium/http/pull/449 216[#450]: https://github.com/hyperium/http/pull/450 217[#435]: https://github.com/hyperium/http/issues/435 218[#445]: https://github.com/hyperium/http/pull/445 219 220