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
137,721 downloads per month
Used in 270 crates
(24 directly)
1MB
19K
SLoC
awc (Actix Web Client)
Async HTTP and WebSocket client library.
Documentation & Resources
- API Documentation
- Example Project
- Chat on Gitter
- Minimum Supported Rust Version (MSRV): 1.46.0
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