15 releases

✓ Uses Rust 2018 edition

0.2.6 Sep 12, 2019
0.2.5 Sep 11, 2019
0.2.4 Aug 13, 2019
0.2.2 Jul 1, 2019
0.1.0-alpha.2 Mar 30, 2019

#5 in HTTP client

Download history 2778/week @ 2019-05-30 4429/week @ 2019-06-06 4008/week @ 2019-06-13 4514/week @ 2019-06-20 4623/week @ 2019-06-27 5000/week @ 2019-07-04 5869/week @ 2019-07-11 6358/week @ 2019-07-18 6295/week @ 2019-07-25 7936/week @ 2019-08-01 8640/week @ 2019-08-08 7819/week @ 2019-08-15 8451/week @ 2019-08-22 7599/week @ 2019-08-29 7572/week @ 2019-09-05

28,245 downloads per month
Used in 23 crates (7 directly)

MIT/Apache

1MB
20K 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

~18MB
~426K SLoC