57 releases (9 stable)

new 3.1.0 Jan 21, 2023
3.0.1 Aug 25, 2022
3.0.0 Mar 8, 2022
3.0.0-beta.17 Dec 29, 2021
0.1.0-alpha.2 Mar 30, 2019

#3 in WebSocket

Download history 21478/week @ 2022-10-07 20228/week @ 2022-10-14 20470/week @ 2022-10-21 20504/week @ 2022-10-28 29873/week @ 2022-11-04 33040/week @ 2022-11-11 21339/week @ 2022-11-18 20220/week @ 2022-11-25 19405/week @ 2022-12-02 21790/week @ 2022-12-09 22218/week @ 2022-12-16 12584/week @ 2022-12-23 14415/week @ 2022-12-30 21585/week @ 2023-01-06 20062/week @ 2023-01-13 22283/week @ 2023-01-20

81,150 downloads per month
Used in 340 crates (58 directly)

MIT/Apache

1MB
20K 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–21MB
~453K SLoC