1
0
mirror of https://github.com/actix/examples synced 2025-06-26 09:17:41 +02:00

v3 examples (#364)

This commit is contained in:
Rob Ede
2020-09-12 16:49:45 +01:00
committed by GitHub
parent 3f2b2708c3
commit 49e29a5751
112 changed files with 251 additions and 333 deletions

View File

@ -5,9 +5,6 @@ authors = ["Nikolay Kim <fafhrd91@gmail.com>", "Rotem Yaari <vmalloc@gmail.com>"
edition = "2018"
[dependencies]
actix-rt = "1.0.0"
actix-web = { version = "2.0.0", features=["openssl"] }
actix-web = { version = "3", features = ["openssl"] }
clap = "2.32.0"
futures = "0.3.1"
failure = "0.1.3"
url = "2.0"

View File

@ -40,7 +40,7 @@ async fn forward(
Ok(client_resp.body(res.body().await?))
}
#[actix_rt::main]
#[actix_web::main]
async fn main() -> std::io::Result<()> {
let matches = clap::App::new("HTTP Proxy")
.arg(