mirror of
https://github.com/actix/actix-web.git
synced 2025-04-24 10:44:08 +00:00
Allow HeaderMap to be cloned
This commit is contained in:
parent
6f2049ba9b
commit
11d65635e8
1 changed files with 2 additions and 2 deletions
|
@ -9,12 +9,12 @@ use http::HttpTryFrom;
|
|||
/// `HeaderMap` is an multimap of [`HeaderName`] to values.
|
||||
///
|
||||
/// [`HeaderName`]: struct.HeaderName.html
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct HeaderMap {
|
||||
pub(crate) inner: HashMap<HeaderName, Value>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) enum Value {
|
||||
One(HeaderValue),
|
||||
Multi(Vec<HeaderValue>),
|
||||
|
|
Loading…
Reference in a new issue