actix-web/awc
dependabot[bot] ce5352b6f0
build(deps): update h2 requirement from 0.3.24 to 0.4.5
Updates the requirements on [h2](https://github.com/hyperium/h2) to permit the latest version.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.24...v0.4.5)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-20 01:05:57 +00:00
..
examples chore: remove allow(uninlined_format_args) 2023-12-16 10:33:00 +00:00
src fix: correct aws rustls v0.23 feature gating 2024-05-19 11:55:12 +01:00
tests chore: update rcgen to 0.13 2024-05-19 10:12:32 +01:00
CHANGES.md chore(awc): prepare release 3.5.0 2024-05-19 10:16:16 +01:00
Cargo.toml build(deps): update h2 requirement from 0.3.24 to 0.4.5 2024-05-20 01:05:57 +00: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): prepare release 3.5.0 2024-05-19 10:16:16 +01: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
    });
}