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

#7 in HTTP client

Download history 12298/week @ 2019-11-01 13161/week @ 2019-11-08 12562/week @ 2019-11-15 13593/week @ 2019-11-22 11883/week @ 2019-11-29 15080/week @ 2019-12-06 13860/week @ 2019-12-13 8243/week @ 2019-12-20 8067/week @ 2019-12-27 13238/week @ 2020-01-03 15777/week @ 2020-01-10 14242/week @ 2020-01-17 15031/week @ 2020-01-24 16568/week @ 2020-01-31 13922/week @ 2020-02-07

51,772 downloads per month
Used in 81 crates (13 directly)

MIT/Apache and MPL-2.0 licenses

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
~447K SLoC