Skip to content

Commit 12ab310

Browse files
tottotoseanmonstar
authored andcommitted
refactor(ext): add feature config to HeaderCaseMap
1 parent 0013bdd commit 12ab310

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ext/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//! HTTP extensions.
22
3+
#[cfg(all(any(feature = "client", feature = "server"), feature = "http1"))]
34
use bytes::Bytes;
45
#[cfg(any(
56
all(any(feature = "client", feature = "server"), feature = "http1"),
67
feature = "ffi"
78
))]
89
use http::header::HeaderName;
910
#[cfg(all(any(feature = "client", feature = "server"), feature = "http1"))]
10-
use http::header::{IntoHeaderName, ValueIter};
11-
use http::HeaderMap;
11+
use http::header::{HeaderMap, IntoHeaderName, ValueIter};
1212
#[cfg(feature = "ffi")]
1313
use std::collections::HashMap;
1414
#[cfg(feature = "http2")]
@@ -98,6 +98,7 @@ impl fmt::Debug for Protocol {
9898
/// ```
9999
///
100100
/// [`preserve_header_case`]: /client/struct.Client.html#method.preserve_header_case
101+
#[cfg(all(any(feature = "client", feature = "server"), feature = "http1"))]
101102
#[derive(Clone, Debug)]
102103
pub(crate) struct HeaderCaseMap(HeaderMap<Bytes>);
103104

0 commit comments

Comments
 (0)