mirror of https://github.com/fafhrd91/actix-web
update changelog and docs
This commit is contained in:
parent
3abd4e601f
commit
427fc41b31
|
@ -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
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue