24 releases (2 stable)

✓ Uses Rust 2018 edition

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

#8 in HTTP client

Download history 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 15083/week @ 2020-01-13 14971/week @ 2020-01-20 15229/week @ 2020-01-27 16763/week @ 2020-02-03 14949/week @ 2020-02-10 14775/week @ 2020-02-17 14831/week @ 2020-02-24 15019/week @ 2020-03-02 16187/week @ 2020-03-09 15096/week @ 2020-03-16

59,280 downloads per month
Used in 110 crates (13 directly)

MIT/Apache and MPL-2.0 licenses

1MB
21K SLoC

Razor 18K SLoC // 0.2% comments Rust 2.5K SLoC // 0.1% comments

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

~20MB
~466K SLoC