11 releases

✓ Uses Rust 2018 edition

0.2.2 Jul 1, 2019
0.2.1 Jun 5, 2019
0.2.0 May 12, 2019
0.1.1 Apr 20, 2019
0.1.0-alpha.2 Mar 30, 2019

#18 in HTTP client

Download history 353/week @ 2019-03-25 626/week @ 2019-04-01 965/week @ 2019-04-08 1469/week @ 2019-04-15 1305/week @ 2019-04-22 1223/week @ 2019-04-29 1374/week @ 2019-05-06 2562/week @ 2019-05-13 2494/week @ 2019-05-20 2263/week @ 2019-05-27 4267/week @ 2019-06-03 3712/week @ 2019-06-10 4275/week @ 2019-06-17 4202/week @ 2019-06-24

10,184 downloads per month
Used in 14 crates (3 directly)

MIT/Apache

787KB
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

~17MB
~379K SLoC