actix-web/awc
Bruno Oliveira 2b090e0817 feat: add QUERY method helpers to awc client and test servers
Extend HTTP QUERY (RFC 10008) support to the remaining per-method
convenience surfaces, mirroring PATCH:

- awc: `Client::query()`
- actix-test: `TestServer::query()`
- actix-http-test: `TestServer::query()` and the HTTPS `TestServer::squery()`

Also tighten `TestRequest::query()`'s doc to match its sibling helpers.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-07 19:21:22 -03:00
..
examples docs: add tls to awc example 2024-12-29 15:17:18 +00:00
src feat: add QUERY method helpers to awc client and test servers 2026-07-07 19:21:22 -03:00
tests chore: update `rcgen` to 0.14 (#4113) 2026-06-21 15:49:28 +09:00
CHANGES.md feat: add QUERY method helpers to awc client and test servers 2026-07-07 19:21:22 -03:00
Cargo.toml fix(http): fix sending responses for upgraded ones on WS (#4117) 2026-06-22 20:34:45 +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
    });
}