1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

upgrade actix-web

This commit is contained in:
Nikolay Kim
2019-05-12 11:58:26 -07:00
parent 68509a7eaf
commit cee9142257
34 changed files with 54 additions and 53 deletions

View File

@ -7,7 +7,7 @@ edition = "2018"
[dependencies]
actix-rt = "0.2"
actix-web = "1.0.0-beta.3"
actix-web = "1.0.0-beta.4"
clap = "2.32.0"
futures = "0.1.25"

View File

@ -87,6 +87,7 @@ fn main() -> std::io::Result<()> {
HttpServer::new(move || {
App::new()
.data(Client::new())
.data(forward_url.clone())
.wrap(middleware::Logger::default())
.default_service(web::route().to_async(forward))