1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 17:07:01 +02:00

Add identity service middleware

This commit is contained in:
Nikolay Kim
2018-04-18 19:05:24 -07:00
parent f907be585e
commit e9bdba57a0
6 changed files with 410 additions and 3 deletions

View File

@@ -201,6 +201,19 @@ impl<S> HttpRequest<S> {
&mut self.as_mut().extensions
}
/// Request extensions
#[inline]
#[doc(hidden)]
pub fn extensions_ro(&self) -> &Extensions {
&self.as_ref().extensions
}
/// Mutable refernece to a the request's extensions
#[inline]
pub fn extensions_mut(&mut self) -> &mut Extensions {
&mut self.as_mut().extensions
}
/// Default `CpuPool`
#[inline]
#[doc(hidden)]