mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 05:41:50 +01:00
Allow HeaderMap to be cloned (#1014)
* Allow HeaderMap to be cloned * Add entry to changelog
This commit is contained in:
parent
81ab37f235
commit
511026cab0
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## [0.2.8] - 2019-07-xx
|
## [0.2.8] - 2019-07-xx
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* Add `Clone` impl for `HeaderMap`
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
* Invalid response with compression middleware enabled, but compression-related features disabled #997
|
* Invalid response with compression middleware enabled, but compression-related features disabled #997
|
||||||
|
@ -9,12 +9,12 @@ use http::HttpTryFrom;
|
|||||||
/// `HeaderMap` is an multimap of [`HeaderName`] to values.
|
/// `HeaderMap` is an multimap of [`HeaderName`] to values.
|
||||||
///
|
///
|
||||||
/// [`HeaderName`]: struct.HeaderName.html
|
/// [`HeaderName`]: struct.HeaderName.html
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct HeaderMap {
|
pub struct HeaderMap {
|
||||||
pub(crate) inner: HashMap<HeaderName, Value>,
|
pub(crate) inner: HashMap<HeaderName, Value>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Clone)]
|
||||||
pub(crate) enum Value {
|
pub(crate) enum Value {
|
||||||
One(HeaderValue),
|
One(HeaderValue),
|
||||||
Multi(Vec<HeaderValue>),
|
Multi(Vec<HeaderValue>),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user