Benign cargo Download

identity.rs

imports http::headerimports http::header::HeaderValue
SHA-256c6d20fe3f31778059dcd0d099bf16a067b62490dfa81d7341829a490c7663332
MaleculeMd(In₂)

Evidence

English function-word token "for" lines 1–6
1//! Request identity service for Actix applications.
2//!
3//! [**IdentityService**](struct.IdentityService.html) middleware can be
4//! used with different policies types to store identity information.
5//!
6//! By default, only cookie ident …
imports http::header::HeaderValue lines 45–65
45:21… ecure(false),
46//! ));
47//! }
48//! ```
49use std::rc::Rc;
50
51use cookie::{Cookie, CookieJar, Key};
52use futures::future::{err as FutErr, ok as FutOk, FutureResult};
53use futures::Future;
54use time::Duration;
55
56use error::{Error, Result};
57use http::header::{self, HeaderValue};
58use httprequest::HttpRequest;
59use httpresponse::HttpResponse;
60use middleware::{Middleware, Response, Started};
61
62/// The helper trait to obtain your identity from a request.
63///
64/// ```rust
65/// use actix_web::midd …
English function-word token "this" lines 94–98
94:6… n remember(&self, identity: String);
95
96 /// This method is used to 'forget' the current identity on subsequent
97 /// requests.
98 fn forget …
English function-word token "and" lines 145–148
145:58… ror>;
146
147 /// Parse the session from request and load data from a service identity.
148 fn from_request(&self, request: &HttpRequest<S>) -> Sel …
English function-word token "that" lines 198–206
198:5… }
199 }
200}
201
202#[doc(hidden)]
203/// Identity that uses private cookies as identity storage.
204pub struct CookieIdentity {
205 changed: bool,
206 …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.