actix-web/awc
joshbenaron d0f37b6eba
Merge df3bf79873 into 2196aeac0a
2026-06-01 06:26:42 +08:00
..
examples docs: add tls to awc example 2024-12-29 15:17:18 +00:00
src Merge df3bf79873 into 2196aeac0a 2026-06-01 06:26:42 +08:00
tests test(awc): add regression test for #2305 (#4044) 2026-04-25 20:08:27 +09:00
CHANGES.md chore(awc): upgrade `hickory-resolver` to 0.26.1 (#4056) 2026-05-04 16:46:22 +09:00
Cargo.toml chore(awc): upgrade `hickory-resolver` to 0.26.1 (#4056) 2026-05-04 16:46:22 +09:00
LICENSE-APACHE add license files 2019-06-01 17:25:29 +06:00
LICENSE-MIT add license files 2019-06-01 17:25:29 +06:00
README.md chore(awc): release v3.8.2 (#3942) 2026-02-18 20:09:09 +09:00

README.md

awc (Actix Web Client)

Async HTTP and WebSocket client library.

crates.io Documentation MIT or Apache 2.0 licensed Dependency Status Chat on Discord

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
    });
}