1
0
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:
Yuki Okushi 2020-02-14 07:41:49 +09:00 committed by GitHub
commit c25df0148b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

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;

View File

@ -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;