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

move session to different folder

This commit is contained in:
Nikolay Kim 2019-03-05 18:52:29 -08:00
parent 143ef87b66
commit 0cf73f1a04
5 changed files with 10 additions and 6 deletions

View File

@ -27,7 +27,7 @@ path = "src/lib.rs"
[workspace]
members = [
".",
"session",
"actix-session",
"staticfiles",
]

View File

@ -42,16 +42,20 @@ where
/// service.
///
/// ```rust
/// use actix_http::http::{test, App, HttpResponse};
/// use actix_web::{test, App, HttpResponse, http::StatusCode};
/// use actix_service::Service;
///
/// fn main() {
/// let app = test::init_service(
/// let mut app = test::init_service(
/// App::new()
/// .resource("/test", |r| r.to(|| HttpResponse::Ok()))
/// )
/// );
///
/// let req = TestRequest::with_uri("/test").to_request();
/// let resp = block_on(srv.call(req)).unwrap();
/// // Create request object
/// let req = test::TestRequest::with_uri("/test").to_request();
///
/// // Execute application
/// let resp = test::block_on(app.call(req)).unwrap();
/// assert_eq!(resp.status(), StatusCode::OK);
/// }
/// ```