pub fn insert_header<H>(mut self, header: H) -> Self
    where
        H: IntoHeaderPair,
    {
        match header.try_into_header_pair() {
            Ok((key, value)) => {
                self.head.headers.insert(key, value);
            }
            Err(e) => self.err = Some(e.into()),
        };

        self
    }
/// Insert a header, replacing any that were set with an equivalent field name.
Insert a header, replacing any that were set with an equivalent field name.
Insert a header replacing any that were set with an equivalent field name .
pub fn insert_header<H>(mut self, header: H) -> Self
    where
        H: IntoHeaderPair,
    {
        match header.try_into_header_pair() {
            Ok((key, value)) => {
                self.head.headers.insert(key, value);
            }
            Err(e) => self.err = Some(e.into()),
        };
        self
    }
pub fn insert_header < H > ( mut self , header : H ) -> Self where H : IntoHeaderPair , { match header . try_into_header_pair ( ) { Ok ( ( key , value ) ) => { self . head . headers . insert ( key , value ) ; } Err ( e ) => self . err = Some ( e . into ( ) ) , } ; self }
Insert a header, replacing any that were set with an equivalent field name.
Insert a header replacing any that were set with an equivalent field name .
mut self
header
H
mut self
header
H