55 releases (7 stable)
3.0.0 | Mar 8, 2022 |
---|---|
3.0.0-beta.19 | Jan 21, 2022 |
3.0.0-beta.17 | Dec 29, 2021 |
3.0.0-beta.12 | Nov 30, 2021 |
0.1.0-alpha.2 | Mar 30, 2019 |
#4 in WebSocket
137,609 downloads per month
Used in 339 crates
(52 directly)
790KB
19K
SLoC
awc (Actix Web Client)
Async HTTP and WebSocket client library.
Documentation & Resources
- API Documentation
- Example Project
- Minimum Supported Rust Version (MSRV): 1.54
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
~11–22MB
~480K SLoC