30 releases (3 stable)

2.0.0 Sep 11, 2020
2.0.0-beta.3 Aug 17, 2020
2.0.0-beta.2 Jul 22, 2020
2.0.0-alpha.1 Mar 11, 2020
0.1.0-alpha.2 Mar 30, 2019

#8 in HTTP client

Download history 17400/week @ 2020-05-30 19806/week @ 2020-06-06 19308/week @ 2020-06-13 20187/week @ 2020-06-20 21436/week @ 2020-06-27 22170/week @ 2020-07-04 21761/week @ 2020-07-11 21893/week @ 2020-07-18 19623/week @ 2020-07-25 19934/week @ 2020-08-01 21769/week @ 2020-08-08 22426/week @ 2020-08-15 23004/week @ 2020-08-22 23848/week @ 2020-08-29 22627/week @ 2020-09-05 26228/week @ 2020-09-12

92,078 downloads per month
Used in 188 crates (17 directly)

MIT/Apache

760KB
19K 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

~21MB
~487K SLoC