pub fn extra_header<K, V>(mut self, key: K, value: V) -> Self
    where
        HeaderName: TryFrom<K>,
        <HeaderName as TryFrom<K>>::Error: Into<HttpError>,
        V: IntoHeaderValue,
    {
        match HeaderName::try_from(key) {
            Ok(key) => match value.try_into_value() {
                Ok(value) => {
                    self.extra_headers.insert(key, value);
                }
                Err(e) => self.err = Some(e.into()),
            },
            Err(e) => self.err = Some(e.into()),
        }
        self
    }
/// Insert a header, it overrides existing header in `FrozenClientRequest`.
Insert a header, it overrides existing header in `FrozenClientRequest`.
Insert a header it overrides existing header in ` FrozenClientRequest ` .
pub fn extra_header<K, V>(mut self, key: K, value: V) -> Self
    where
        HeaderName: TryFrom<K>,
        <HeaderName as TryFrom<K>>::Error: Into<HttpError>,
        V: IntoHeaderValue,
    {
        match HeaderName::try_from(key) {
            Ok(key) => match value.try_into_value() {
                Ok(value) => {
                    self.extra_headers.insert(key, value);
                }
                Err(e) => self.err = Some(e.into()),
            },
            Err(e) => self.err = Some(e.into()),
        }
        self
    }
pub fn extra_header < K , V > ( mut self , key : K , value : V ) -> Self where HeaderName : TryFrom < K > , < HeaderName as TryFrom < K > > :: Error : Into < HttpError > , V : IntoHeaderValue , { match HeaderName :: try_from ( key ) { Ok ( key ) => match value . try_into_value ( ) { Ok ( value ) => { self . extra_headers . insert ( key , value ) ; } Err ( e ) => self . err = Some ( e . into ( ) ) , } , Err ( e ) => self . err = Some ( e . into ( ) ) , } self }
Insert a header, it overrides existing header in `FrozenClientRequest`.
Insert a header it overrides existing header in ` FrozenClientRequest ` .
mut self
key
K
value
V
mut self
key
K
value
V