mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-28 01:52:57 +01:00
doc strings layout
This commit is contained in:
parent
48b02abee7
commit
813d1d6e66
@ -14,6 +14,7 @@ use httpresponse::HttpResponse;
|
|||||||
use middleware::{Finished, Middleware, Started};
|
use middleware::{Finished, Middleware, Started};
|
||||||
|
|
||||||
/// `Middleware` for logging request and response info to the terminal.
|
/// `Middleware` for logging request and response info to the terminal.
|
||||||
|
///
|
||||||
/// `Logger` middleware uses standard log crate to log information. You should
|
/// `Logger` middleware uses standard log crate to log information. You should
|
||||||
/// enable logger for `actix_web` package to see access log.
|
/// enable logger for `actix_web` package to see access log.
|
||||||
/// ([`env_logger`](https://docs.rs/env_logger/*/env_logger/) or similar)
|
/// ([`env_logger`](https://docs.rs/env_logger/*/env_logger/) or similar)
|
||||||
|
@ -52,8 +52,8 @@
|
|||||||
//! fn main() {
|
//! fn main() {
|
||||||
//! let sys = actix::System::new("basic-example");
|
//! let sys = actix::System::new("basic-example");
|
||||||
//! server::new(
|
//! server::new(
|
||||||
//! || App::new()
|
//! || App::new().middleware(
|
||||||
//! .middleware(SessionStorage::new( // <- create session middleware
|
//! SessionStorage::new( // <- create session middleware
|
||||||
//! CookieSessionBackend::signed(&[0; 32]) // <- create signed cookie session backend
|
//! CookieSessionBackend::signed(&[0; 32]) // <- create signed cookie session backend
|
||||||
//! .secure(false)
|
//! .secure(false)
|
||||||
//! )))
|
//! )))
|
||||||
|
Loading…
Reference in New Issue
Block a user