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

        self
    }
/// Append a header, keeping any that were set with an equivalent field name.
///
/// ```
/// # #[actix_rt::main]
/// # async fn main() {
/// # use awc::Client;
/// use awc::http::header::CONTENT_TYPE;
///
/// Client::new()
///     .get("http://www.rust-lang.org")
///     .insert_header(("X-TEST", "value"))
///     .insert_header((CONTENT_TYPE, mime::APPLICATION_JSON));
/// # }
/// ```
Append a header, keeping any that were set with an equivalent field name.
Append a header keeping any that were set with an equivalent field name .
pub fn append_header<H>(mut self, header: H) -> Self
    where
        H: IntoHeaderPair,
    {
        match header.try_into_header_pair() {
            Ok((key, value)) => self.head.headers.append(key, value),
            Err(e) => self.err = Some(e.into()),
        };
        self
    }
pub fn append_header < H > ( mut self , header : H ) -> Self where H : IntoHeaderPair , { match header . try_into_header_pair ( ) { Ok ( ( key , value ) ) => self . head . headers . append ( key , value ) , Err ( e ) => self . err = Some ( e . into ( ) ) , } ; self }
Append a header, keeping any that were set with an equivalent field name.
Append a header keeping any that were set with an equivalent field name .
mut self
header
H
mut self
header
H
#[actix_rt::main]
None
async fn main() {
None
use awc::client;
None
}
None