actix-web/awc
Luca Palmieri 229985d3d2
Merge branch 'master' into upgrade-time-dependency
2021-12-29 10:36:01 +01:00
..
examples tweak compress feature docs 2021-06-19 20:23:06 +01:00
src use modern signatures for awc `send_*` and `header` methods (#2553) 2021-12-28 03:22:22 +00:00
tests only build `SslConnectorBuilder` once (#2503) 2021-12-18 16:44:30 +00:00
CHANGES.md Update changelogs. 2021-12-29 10:34:00 +01:00
Cargo.toml Upgrade to the latest `cookie` release - this removes the dependency on a version of `time` that was affected by RUSTSEC-2020-0071. `actix-web` still depends on a vulnerable version of `chrono` via `rcgen`, but `rcgen` is only used as a dev dependency therefore this does not affect end users. 2021-12-29 10:31:50 +01: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 bump msrv to 1.54 2021-12-29 08:59:15 +00: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

Documentation & Resources

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
            .insert_header(("User-Agent", "Actix-web"))
            .send()                             // <- Send http request
            .await;

        println!("Response: {:?}", res);        // <- server http response
    });
}