67 releases (19 stable)
| 3.8.1 | Oct 5, 2025 |
|---|---|
| 3.7.0 | May 10, 2025 |
| 3.6.0 | Mar 10, 2025 |
| 3.5.1 | Aug 10, 2024 |
| 0.1.0-alpha.2 | Mar 30, 2019 |
#71 in HTTP client
154,319 downloads per month
Used in 412 crates
(104 directly)
1MB
21K
SLoC
awc (Actix Web Client)
Async HTTP and WebSocket client library.
Examples
Example project using TLS-enabled client →
Basic usage:
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
~16–39MB
~603K SLoC