17 releases

✓ Uses Rust 2018 edition

0.2.8 Nov 6, 2019
0.2.7 Sep 25, 2019
0.2.4 Aug 13, 2019
0.2.2 Jul 1, 2019
0.1.0-alpha.2 Mar 30, 2019

#7 in HTTP client

Download history 6442/week @ 2019-07-24 7662/week @ 2019-07-31 8199/week @ 2019-08-07 8013/week @ 2019-08-14 8384/week @ 2019-08-21 7722/week @ 2019-08-28 7736/week @ 2019-09-04 9399/week @ 2019-09-11 9046/week @ 2019-09-18 10845/week @ 2019-09-25 9998/week @ 2019-10-02 9932/week @ 2019-10-09 11705/week @ 2019-10-16 11749/week @ 2019-10-23 10754/week @ 2019-10-30

40,853 downloads per month
Used in 26 crates (8 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

~17MB
~430K SLoC