1
0
mirror of https://github.com/actix/examples synced 2024-11-24 06:43:00 +01:00
examples/awc_https
Darin 2444da34be
Update awc_https/src/main.rs
Co-Authored-By: Yuki Okushi <huyuumi.dev@gmail.com>
2020-03-01 13:16:57 -05:00
..
src Update awc_https/src/main.rs 2020-03-01 13:16:57 -05:00
Cargo.toml added awc ssl example 2020-03-01 08:55:00 -05:00
README.md added awc ssl example 2020-03-01 08:55:00 -05:00

The goal of this example is to show you how to use the actix-web client (awc) for https related communication. As of actix-web 2.0.0, one must be very careful about setting up https communication. You could use the default awc api without configuring ssl but performance will be severely diminished.

This example downloads a 10MB image from wikipedia.

To run:

curl http://localhost:3000 -o image.jpg