9 releases

✓ Uses Rust 2018 edition

0.2.0 May 12, 2019
0.1.1 Apr 20, 2019
0.1.0-alpha.2 Mar 30, 2019

#20 in HTTP client

Download history 245/week @ 2019-03-24 691/week @ 2019-03-31 878/week @ 2019-04-07 1429/week @ 2019-04-14 1311/week @ 2019-04-21 1215/week @ 2019-04-28 1406/week @ 2019-05-05

2,417 downloads per month
Used in 9 crates (1 directly)

MIT/Apache

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

~16MB
~282K SLoC