pub fn insert_header<H>(&mut self, header: H) -> &mut Self
    where
        H: IntoHeaderPair,
    {
        match header.try_into_header_pair() {
            Ok((key, value)) => {
                parts(&mut self.0).headers.insert(key, value);
            }
            Err(err) => {
                panic!("Error inserting test header: {}.", err.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) -> &mut Self
    where
        H: IntoHeaderPair,
    {
        match header.try_into_header_pair() {
            Ok((key, value)) => {
                parts(&mut self.0).headers.insert(key, value);
            }
            Err(err) => {
                panic!("Error inserting test header: {}.", err.into());
            }
        }
        self
    }
pub fn insert_header < H > ( & mut self , header : H ) -> & mut Self where H : IntoHeaderPair , { match header . try_into_header_pair ( ) { Ok ( ( key , value ) ) => { parts ( & mut self . 0 ) . headers . insert ( key , value ) ; } Err ( err ) => { panic ! ( " " err 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