mirror of
https://github.com/actix/actix-extras.git
synced 2025-01-22 23:05:56 +01:00
Merge pull request #3 from dotdash/doc_fix
Update Session doc to refer to UserSession instead of RequestSession
This commit is contained in:
commit
c25df0148b
@ -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;
|
||||||
|
@ -5,7 +5,6 @@ use std::str;
|
|||||||
use actix_web::http::header::{
|
use actix_web::http::header::{
|
||||||
HeaderValue, IntoHeaderValue, InvalidHeaderValue,
|
HeaderValue, IntoHeaderValue, InvalidHeaderValue,
|
||||||
};
|
};
|
||||||
use base64;
|
|
||||||
use bytes::{BufMut, BytesMut};
|
use bytes::{BufMut, BytesMut};
|
||||||
|
|
||||||
use crate::headers::authorization::errors::ParseError;
|
use crate::headers::authorization::errors::ParseError;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user