update changelog and docs

This commit is contained in:
Rob Ede 2023-01-01 20:31:41 +00:00
parent 3abd4e601f
commit 427fc41b31
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 9 additions and 2 deletions

View File

@ -4,14 +4,14 @@
### Added
- Implement `MessageBody` for `&mut B` where `B: MessageBody + Unpin`. [#2868]
- Implement `MessageBody` for `Pin<B>` where `B::Target: MessageBody`. [#2868]
- `HeaderMap::retain()` [#????].
- `HeaderMap::retain()` [#2955].
### Performance
- Improve overall performance of operations on `Extensions`. [#2890]
[#2868]: https://github.com/actix/actix-web/pull/2868
[#2890]: https://github.com/actix/actix-web/pull/2890
[#????]: https://github.com/actix/actix-web/pull/????
[#2955]: https://github.com/actix/actix-web/pull/2955
## 3.2.2 - 2022-09-11

View File

@ -550,6 +550,13 @@ impl HeaderMap {
Keys(self.inner.keys())
}
/// Retains only the headers specified by the predicate.
///
/// In other words, removes all headers `(name, val)` for which `retain_fn(&name, &mut val)`
/// returns false.
///
/// The order in which headers are visited should be considered arbitrary.
///
/// # Examples
/// ```
/// # use actix_http::header::{self, HeaderMap, HeaderValue};