1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 15:51:06 +01:00

Update Session doc to refer to UserSession instead of RequestSession

This commit is contained in:
Björn Steinbrink 2020-02-10 15:26:37 +01:00
parent 3e17ad9a4e
commit d849157411

View File

@ -62,8 +62,9 @@ pub use crate::cookie::CookieSession;
/// The high-level interface you use to modify session data.
///
/// Session object could be obtained with
/// [`RequestSession::session`](trait.RequestSession.html#tymethod.session)
/// method. `RequestSession` trait is implemented for `HttpRequest`.
/// [`UserSession::get_session`](trait.UserSession.html#tymethod.get_session)
/// method. The `UserSession` trait is implemented for `HttpRequest`, `ServiceRequest`, and
/// `RequestHead`.
///
/// ```rust
/// use actix_session::Session;