#actix #http #framework #async #web

awc

Async HTTP and WebSocket client library built on the Actix ecosystem

51 releases (6 stable)

3.0.0-beta.18 Jan 4, 2022
3.0.0-beta.17 Dec 29, 2021
3.0.0-beta.12 Nov 30, 2021
3.0.0-beta.7 Jun 26, 2021
0.1.0-alpha.2 Mar 30, 2019

#3 in WebSocket

Download history 39721/week @ 2021-09-27 38816/week @ 2021-10-04 41560/week @ 2021-10-11 41819/week @ 2021-10-18 35551/week @ 2021-10-25 34667/week @ 2021-11-01 37986/week @ 2021-11-08 40920/week @ 2021-11-15 33633/week @ 2021-11-22 39442/week @ 2021-11-29 35948/week @ 2021-12-06 39774/week @ 2021-12-13 26901/week @ 2021-12-20 17390/week @ 2021-12-27 29414/week @ 2022-01-03 34066/week @ 2022-01-10

109,744 downloads per month
Used in 371 crates (51 directly)

MIT/Apache

745KB
18K 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

~22MB
~511K SLoC