55 releases (7 stable)

3.0.0 Mar 8, 2022
3.0.0-beta.19 Jan 21, 2022
3.0.0-beta.17 Dec 29, 2021
3.0.0-beta.12 Nov 30, 2021
0.1.0-alpha.2 Mar 30, 2019

#4 in WebSocket

Download history 28961/week @ 2022-03-15 30288/week @ 2022-03-22 38869/week @ 2022-03-29 41457/week @ 2022-04-05 37701/week @ 2022-04-12 34250/week @ 2022-04-19 34577/week @ 2022-04-26 25372/week @ 2022-05-03 30975/week @ 2022-05-10 31814/week @ 2022-05-17 30889/week @ 2022-05-24 25346/week @ 2022-05-31 35496/week @ 2022-06-07 31343/week @ 2022-06-14 34793/week @ 2022-06-21 30436/week @ 2022-06-28

137,609 downloads per month
Used in 339 crates (52 directly)

MIT/Apache

790KB
19K SLoC

awc (Actix Web Client)

Async HTTP and WebSocket client library.

crates.io Documentation MIT or Apache 2.0 licensed Dependency Status Chat on Discord

Documentation & Resources

Example

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

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

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

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

Dependencies

~11–22MB
~480K SLoC