mirror of
https://github.com/actix/examples
synced 2025-06-26 09:17:41 +02:00
v3 examples (#364)
This commit is contained in:
@ -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"
|
||||
|
@ -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(
|
||||
|
Reference in New Issue
Block a user