pub fn with_headers(&self, headers: http::HeaderMap) -> Self {
        Self {
            app: self.app.clone(),
            headers: Some(headers),
        }
    }
/// with_headers applies the headers to any following request, and acts as an alternative
/// constructor.
with_headers applies the headers to any following request, and acts as an alternative
constructor.
with_headers applies the headers to any following request and acts as an alternative constructor .
pub fn with_headers(&self, headers: http::HeaderMap) -> Self {
        Self {
            app: self.app.clone(),
            headers: Some(headers),
        }
    }
pub fn with_headers ( & self , headers : http :: HeaderMap ) -> Self { Self { app : self . app . clone ( ) , headers : Some ( headers ) , } }
with_headers applies the headers to any following request, and acts as an alternative
constructor.
with_headers applies the headers to any following request and acts as an alternative constructor .
&self
headers
http::HeaderMap
&self
headers
http::HeaderMap