23 releases (2 stable)

✓ Uses Rust 2018 edition

1.0.1 Dec 15, 2019
0.3.0-alpha.2 Dec 2, 2019
0.3.0-alpha.1 Nov 22, 2019
0.2.2 Jul 1, 2019
0.1.0-alpha.2 Mar 30, 2019

#5 in HTTP client

Download history 9894/week @ 2019-10-07 11039/week @ 2019-10-14 11957/week @ 2019-10-21 10640/week @ 2019-10-28 13414/week @ 2019-11-04 12963/week @ 2019-11-11 12262/week @ 2019-11-18 12833/week @ 2019-11-25 13030/week @ 2019-12-02 15000/week @ 2019-12-09 13492/week @ 2019-12-16 7670/week @ 2019-12-23 8568/week @ 2019-12-30 14157/week @ 2020-01-06 14822/week @ 2020-01-13

51,772 downloads per month
Used in 71 crates (13 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

~19MB
~448K SLoC