mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-24 06:15:36 +02:00
rename .middleware to .wrap
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
//! fn main() -> std::io::Result<()> {
|
||||
//! # std::thread::spawn(||
|
||||
//! HttpServer::new(
|
||||
//! || App::new().middleware(
|
||||
//! || App::new().wrap(
|
||||
//! CookieSession::signed(&[0; 32]) // <- create cookie based session middleware
|
||||
//! .secure(false)
|
||||
//! )
|
||||
|
Reference in New Issue
Block a user