25 releases (2 stable)

✓ Uses Rust 2018 edition

2.0.0-alpha.2 May 21, 2020
2.0.0-alpha.1 Mar 11, 2020
1.0.1 Dec 15, 2019
0.3.0-alpha.2 Dec 2, 2019
0.1.0-alpha.2 Mar 30, 2019

#7 in HTTP client

Download history 15681/week @ 2020-03-16 16523/week @ 2020-03-23 16469/week @ 2020-03-30 15923/week @ 2020-04-06 15440/week @ 2020-04-13 16257/week @ 2020-04-20 17846/week @ 2020-04-27 16054/week @ 2020-05-04 17626/week @ 2020-05-11 16025/week @ 2020-05-18 15409/week @ 2020-05-25 18985/week @ 2020-06-01 18452/week @ 2020-06-08 19467/week @ 2020-06-15 20583/week @ 2020-06-22 20751/week @ 2020-06-29

68,329 downloads per month
Used in 155 crates (13 directly)

MIT/Apache and maybe MPL-2.0

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

~15–20MB
~470K SLoC