33 releases (6 stable)

new 2.0.3 Nov 29, 2020
2.0.1 Oct 30, 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

#2 in WebSocket

Download history 22426/week @ 2020-08-15 23004/week @ 2020-08-22 23848/week @ 2020-08-29 22627/week @ 2020-09-05 27915/week @ 2020-09-12 25550/week @ 2020-09-19 29680/week @ 2020-09-26 28694/week @ 2020-10-03 28853/week @ 2020-10-10 28034/week @ 2020-10-17 30088/week @ 2020-10-24 32281/week @ 2020-10-31 30987/week @ 2020-11-07 32451/week @ 2020-11-14 31617/week @ 2020-11-21 31356/week @ 2020-11-28

123,226 downloads per month
Used in 232 crates (18 directly)

MIT/Apache

770KB
19K SLoC

awc (Actix Web Client)

Async HTTP and WebSocket client library.

crates.io Documentation Apache 2.0 or MIT licensed Dependency Status Join the chat at https://gitter.im/actix/actix-web

Documentation & Resources

Example

use actix_rt::System;
use awc::Client;

fn main() {
    System::new("test").block_on(async {
        let client = Client::default();

        let res = client
            .get("http://www.rust-lang.org")    // <- Create request builder
            .header("User-Agent", "Actix-web")
            .send()                             // <- Send http request
            .await;

        println!("Response: {:?}", res);        // <- server http response
    });
}

Dependencies

~21MB
~494K SLoC