1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-27 17:22:57 +01:00

use actix-web master

This commit is contained in:
Nikolay Kim 2018-04-09 19:35:30 -07:00
parent 08f80a5bff
commit f1e5126a1d
2 changed files with 5 additions and 5 deletions

View File

@ -38,8 +38,8 @@ tokio-core = "0.1"
redis-async = "0.0"
# actix web session
actix-web = { version="0.4", optional=true }
# actix-web = { git = "https://github.com/actix/actix-web.git", optional=true }
# actix-web = { version="0.4", optional=true }
actix-web = { git = "https://github.com/actix/actix-web.git", optional=true }
cookie = { version="0.10", features=["percent-encode", "secure"], optional=true }
http = { version="0.1", optional=true }
rand = { version="0.3", optional=true }

View File

@ -7,7 +7,7 @@ extern crate actix_redis;
extern crate env_logger;
extern crate futures;
use actix_web::*;
use actix_web::{server, middleware, App, HttpRequest, HttpResponse, Result};
use actix_web::middleware::RequestSession;
use actix_redis::RedisSessionBackend;
@ -32,8 +32,8 @@ fn main() {
env_logger::init();
let sys = actix::System::new("basic-example");
HttpServer::new(
|| Application::new()
server::new(
|| App::new()
// enable logger
.middleware(middleware::Logger::default())
// cookie session middleware