1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 17:52:56 +01:00

mentioned re-use in wrap doc

This commit is contained in:
dowwie 2019-04-01 09:59:21 -04:00
parent 220c04b7b3
commit 8800b8ef13

View File

@ -113,8 +113,8 @@ where
}
/// Registers heavyweight Application-level middleware, in the form of a
/// middleware type, that runs during inbound and/or outbound processing in the
/// request lifecycle (request -> response).
/// re-usable middleware type, that runs during inbound and/or outbound
/// processing in the request lifecycle (request -> response).
///
/// ```rust
/// use actix_service::Service;
@ -422,8 +422,8 @@ where
}
/// Registers heavyweight Route-level middleware, in the form of a
/// middleware type, that runs during inbound and/or outbound processing in the
/// request lifecycle (request -> response).
/// re-usable middleware type, that runs during inbound and/or outbound
/// processing in the request lifecycle (request -> response).
pub fn wrap<M, B1, F>(
self,
mw: F,