#actix #http #framework #async #web

awc

Async HTTP and WebSocket client library built on the Actix ecosystem

38 releases (6 stable)

3.0.0-beta.5 Apr 17, 2021
3.0.0-beta.3 Mar 8, 2021
2.0.3 Nov 29, 2020
2.0.0-beta.2 Jul 22, 2020
0.1.0-alpha.2 Mar 30, 2019

#3 in WebSocket

Download history 46268/week @ 2021-02-24 40087/week @ 2021-03-03 43895/week @ 2021-03-10 42729/week @ 2021-03-17 42926/week @ 2021-03-24 33664/week @ 2021-03-31 35349/week @ 2021-04-07 34493/week @ 2021-04-14 34017/week @ 2021-04-21 32148/week @ 2021-04-28 31619/week @ 2021-05-05 32808/week @ 2021-05-12 31452/week @ 2021-05-19 33701/week @ 2021-05-26 31582/week @ 2021-06-02 27739/week @ 2021-06-09

161,425 downloads per month
Used in 306 crates (30 directly)

MIT/Apache

690KB
17K SLoC

awc (Actix Web Client)

Async HTTP and WebSocket client library.

crates.io Documentation MIT or Apache 2.0 licensed Dependency Status Join the chat at https://gitter.im/actix/actix-web

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