actix-web/awc
dependabot[bot] 6c00aedd6e
Update cookie requirement from 0.16 to 0.17
Updates the requirements on [cookie](https://github.com/SergioBenitez/cookie-rs) to permit the latest version.
- [Changelog](https://github.com/SergioBenitez/cookie-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/SergioBenitez/cookie-rs/compare/0.16.0...0.17.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-19 22:38:52 +00:00
..
examples address clippy lints 2023-01-01 20:56:34 +00:00
src apply standard formatting 2023-07-17 02:38:12 +01:00
tests apply standard formatting 2023-07-17 02:38:12 +01:00
CHANGES.md update MSRV to 1.65 (#3059) 2023-07-02 01:09:15 +01:00
Cargo.toml Update cookie requirement from 0.16 to 0.17 2023-07-19 22:38:52 +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 update MSRV to 1.65 (#3059) 2023-07-02 01:09:15 +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

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