1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-02-20 01:34:22 +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. /// The high-level interface you use to modify session data.
/// ///
/// Session object could be obtained with /// Session object could be obtained with
/// [`RequestSession::session`](trait.RequestSession.html#tymethod.session) /// [`UserSession::get_session`](trait.UserSession.html#tymethod.get_session)
/// method. `RequestSession` trait is implemented for `HttpRequest`. /// method. The `UserSession` trait is implemented for `HttpRequest`, `ServiceRequest`, and
/// `RequestHead`.
/// ///
/// ```rust /// ```rust
/// use actix_session::Session; /// use actix_session::Session;