diff --git a/src/ext.rs b/src/ext.rs index 2177351493..e6b29fa529 100644 --- a/src/ext.rs +++ b/src/ext.rs @@ -99,6 +99,11 @@ pub struct HeaderCaseMap(HeaderMap); #[cfg(feature = "http1")] impl HeaderCaseMap { + /// Thank you hyper for not just making this public to being with + pub fn get(&self, key: HeaderName) -> Option<&Bytes> { + self.0.get(key) + } + /// Returns a view of all spellings associated with that header name, /// in the order they were found. pub(crate) fn get_all<'a>(