7 releases

✓ Uses Rust 2018 edition

new 0.1.0 Apr 16, 2019
0.1.0-alpha.6 Apr 14, 2019
0.1.0-alpha.2 Mar 30, 2019

#10 in #actix

Download history 483/week @ 2019-03-26 618/week @ 2019-04-02 1063/week @ 2019-04-09

773 downloads per month
Used in 9 crates (1 directly)

MIT/Apache

765KB
18K SLoC

Actix http client Build Status codecov crates.io Join the chat at https://gitter.im/actix/actix

An HTTP Client

Documentation & community resources

Example

use actix_rt::System;
use awc::Client;
use futures::future::{Future, lazy};

fn main() {
    System::new("test").block_on(lazy(|| {
       let mut client = Client::default();

       client.get("http://www.rust-lang.org") // <- Create request builder
          .header("User-Agent", "Actix-web")
          .send()                             // <- Send http request
          .and_then(|response| {              // <- server http response
               println!("Response: {:?}", response);
               Ok(())
          })
    }));
}

Dependencies

~15MB
~272K SLoC