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

#28 in HTTP client

Download history 26148/week @ 2023-12-08 22454/week @ 2023-12-15 13617/week @ 2023-12-22 15429/week @ 2023-12-29 25504/week @ 2024-01-05 25897/week @ 2024-01-12 24852/week @ 2024-01-19 24383/week @ 2024-01-26 22737/week @ 2024-02-02 23723/week @ 2024-02-09 25186/week @ 2024-02-16 25212/week @ 2024-02-23 24633/week @ 2024-03-01 26259/week @ 2024-03-08 27122/week @ 2024-03-15 21431/week @ 2024-03-22

104,232 downloads per month
Used in 372 crates (84 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
~544K SLoC