64 releases (16 stable)

3.6.0 Mar 10, 2025
3.5.1 Aug 10, 2024
3.5.0 May 19, 2024
3.4.0 Feb 4, 2024
0.1.0-alpha.2 Mar 30, 2019

#31 in WebSocket

Download history 17024/week @ 2024-12-27 30793/week @ 2025-01-03 37219/week @ 2025-01-10 32848/week @ 2025-01-17 34820/week @ 2025-01-24 43009/week @ 2025-01-31 48469/week @ 2025-02-07 35181/week @ 2025-02-14 41794/week @ 2025-02-21 42244/week @ 2025-02-28 44316/week @ 2025-03-07 57726/week @ 2025-03-14 53443/week @ 2025-03-21 48283/week @ 2025-03-28 47640/week @ 2025-04-04 39687/week @ 2025-04-11

198,791 downloads per month
Used in 398 crates (96 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

Examples

Example project using TLS-enabled client →

Basic usage:

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

~12–29MB
~547K SLoC