57 releases (9 stable)
new 3.1.0 | Jan 21, 2023 |
---|---|
3.0.1 | Aug 25, 2022 |
3.0.0 | Mar 8, 2022 |
3.0.0-beta.17 | Dec 29, 2021 |
0.1.0-alpha.2 | Mar 30, 2019 |
#3 in WebSocket
81,150 downloads per month
Used in 340 crates
(58 directly)
1MB
20K
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–21MB
~453K SLoC