Skip to content

Commit

Permalink
refactor(ext): add feature config to HeaderCaseMap
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored and seanmonstar committed Mar 26, 2024
1 parent 0013bdd commit 12ab310
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ext/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
//! HTTP extensions.

#[cfg(all(any(feature = "client", feature = "server"), feature = "http1"))]
use bytes::Bytes;
#[cfg(any(
all(any(feature = "client", feature = "server"), feature = "http1"),
feature = "ffi"
))]
use http::header::HeaderName;
#[cfg(all(any(feature = "client", feature = "server"), feature = "http1"))]
use http::header::{IntoHeaderName, ValueIter};
use http::HeaderMap;
use http::header::{HeaderMap, IntoHeaderName, ValueIter};
#[cfg(feature = "ffi")]
use std::collections::HashMap;
#[cfg(feature = "http2")]
Expand Down Expand Up @@ -98,6 +98,7 @@ impl fmt::Debug for Protocol {
/// ```
///
/// [`preserve_header_case`]: /client/struct.Client.html#method.preserve_header_case
#[cfg(all(any(feature = "client", feature = "server"), feature = "http1"))]
#[derive(Clone, Debug)]
pub(crate) struct HeaderCaseMap(HeaderMap<Bytes>);

Expand Down

0 comments on commit 12ab310

Please sign in to comment.