#actix #http #framework #async #web

awc

Async HTTP and WebSocket client library built on the Actix ecosystem

35 releases (6 stable)

3.0.0-beta.2 Feb 10, 2021
2.0.3 Nov 29, 2020
2.0.0-beta.2 Jul 22, 2020
2.0.0-alpha.1 Mar 11, 2020
0.1.0-alpha.2 Mar 30, 2019

#2 in WebSocket

Download history 33083/week @ 2020-11-15 31059/week @ 2020-11-22 34175/week @ 2020-11-29 34312/week @ 2020-12-06 31603/week @ 2020-12-13 21290/week @ 2020-12-20 18559/week @ 2020-12-27 30348/week @ 2021-01-03 39459/week @ 2021-01-10 36338/week @ 2021-01-17 38139/week @ 2021-01-24 37794/week @ 2021-01-31 39775/week @ 2021-02-07 38461/week @ 2021-02-14 42807/week @ 2021-02-21 41462/week @ 2021-02-28

137,721 downloads per month
Used in 270 crates (24 directly)

MIT/Apache

1MB
19K 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
            .header("User-Agent", "Actix-web")
            .send()                             // <- Send http request
            .await;

        println!("Response: {:?}", res);        // <- server http response
    });
}

Dependencies

~21MB
~493K SLoC