61 releases (13 stable)

3.4.0 Feb 4, 2024
3.3.0 Dec 24, 2023
3.2.0 Aug 29, 2023
3.1.1 Feb 26, 2023
0.1.0-alpha.2 Mar 30, 2019

#26 in HTTP client

Download history 24676/week @ 2024-01-27 22810/week @ 2024-02-03 23376/week @ 2024-02-10 25605/week @ 2024-02-17 24649/week @ 2024-02-24 25382/week @ 2024-03-02 25713/week @ 2024-03-09 27884/week @ 2024-03-16 24584/week @ 2024-03-23 26921/week @ 2024-03-30 24344/week @ 2024-04-06 26146/week @ 2024-04-13 25620/week @ 2024-04-20 24278/week @ 2024-04-27 24534/week @ 2024-05-04 22763/week @ 2024-05-11

101,696 downloads per month
Used in 374 crates (86 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

~13–30MB
~536K SLoC