diff --git a/actix_cors/all.html b/actix_cors/all.html index 66db96296..34ac0dba6 100644 --- a/actix_cors/all.html +++ b/actix_cors/all.html @@ -1,5 +1,6 @@
#[non_exhaustive]
+ Enum actix_cors::CorsError [−][src]
#[non_exhaustive]
pub enum CorsError {
WildcardOrigin,
MissingOrigin,
@@ -31,24 +32,24 @@ pub enum CorsError {
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Cross-Origin Resource Sharing (CORS) controls for Actix Web.
+Cross-Origin Resource Sharing (CORS) controls for Actix Web.
This middleware can be applied to both applications and resources. Once built, a
Cors
builder can be used as an argument for Actix Web’s App::wrap()
,
Scope::wrap()
, or Resource::wrap()
methods.
Builder for CORS middleware.
Errors that can occur when processing CORS guarded requests.
-pub struct Cors { /* fields omitted */ }
Builder for CORS middleware.
+pub struct Cors { /* fields omitted */ }
Builder for CORS middleware.
To construct a CORS middleware, call Cors::default()
to create a blank, restrictive builder.
Then use any of the builder methods to customize CORS behavior.
The alternative Cors::permissive()
constructor is available for local development, allowing
@@ -21,12 +22,12 @@ server will fail to start up or serve requests.
A very permissive set of default for quick development. Not recommended for production use.
+A very permissive set of default for quick development. Not recommended for production use.
All origins, methods, request headers and exposed headers allowed. Credentials supported. Max age 1 hour. Does not send wildcard.
-Resets allowed origin list to a state where any origin is accepted.
+Resets allowed origin list to a state where any origin is accepted.
See Cors::allowed_origin
for more info on allowed origins.
Add an origin that is allowed to make requests.
+Add an origin that is allowed to make requests.
By default, requests from all origins are accepted by CORS logic. This method allows to
specify a finite set of origins to verify the value of the Origin
request header.
These are origin-or-null
types in the Fetch Standard.
*
). Cors::send_wildcard
should be used instead.Determinate allowed origins by processing requests which didn’t match any origins specified +
Determinate allowed origins by processing requests which didn’t match any origins specified
in the allowed_origin
.
The function will receive two parameters, the Origin header value, and the RequestHead
of
each request, which can be used to determine whether to allow the request or not.
If the function returns true
, the client’s Origin
request header will be echoed back
into the Access-Control-Allow-Origin
response header.
Resets allowed methods list to all methods.
+Resets allowed methods list to all methods.
See Cors::allowed_methods
for more info on allowed methods.
Set a list of methods which allowed origins can perform.
+Set a list of methods which allowed origins can perform.
These will be sent in the Access-Control-Allow-Methods
response header as specified in
the Fetch Standard CORS protocol.
Defaults to [GET, HEAD, POST, OPTIONS, PUT, PATCH, DELETE]
Resets allowed request header list to a state where any header is accepted.
+Resets allowed request header list to a state where any header is accepted.
See Cors::allowed_headers
for more info on allowed request headers.
Add an allowed request header.
+Add an allowed request header.
See Cors::allowed_headers
for more info on allowed request headers.
Set a list of request header field names which can be used when this resource is accessed by +
Set a list of request header field names which can be used when this resource is accessed by allowed origins.
If All
is set, whatever is requested by the client in Access-Control-Request-Headers
will be echoed back in the Access-Control-Allow-Headers
header as specified in
the Fetch Standard CORS protocol.
Defaults to All
.
Resets exposed response header list to a state where any header is accepted.
+Resets exposed response header list to a state where any header is accepted.
See Cors::expose_headers
for more info on exposed response headers.
Set a list of headers which are safe to expose to the API of a CORS API specification. +
Set a list of headers which are safe to expose to the API of a CORS API specification.
This corresponds to the Access-Control-Expose-Headers
response header as specified in
the Fetch Standard CORS protocol.
This defaults to an empty set.
-Set a maximum time (in seconds) for which this CORS request maybe cached. +
Set a maximum time (in seconds) for which this CORS request maybe cached.
This value is set as the Access-Control-Max-Age
header as specified in
the Fetch Standard CORS protocol.
Pass a number (of seconds) or use None to disable sending max age header.
-Set to use wildcard origins.
+Set to use wildcard origins.
If send wildcard is set and the allowed_origins
parameter is All
, a wildcard
Access-Control-Allow-Origin
response header is sent, rather than the request’s
Origin
header.
allow_credentials
set to true
. Depending on the mode of usage, this will either result
in an CorsError::CredentialsWithWildcardOrigin
error during actix launch or runtime.
Defaults to false
.
Allows users to make authenticated requests
+Allows users to make authenticated requests
If true, injects the Access-Control-Allow-Credentials
header in responses. This allows
cookies and credentials to be submitted across domains as specified in
the Fetch Standard CORS protocol.
Defaults to false
.
A server initialization error will occur if credentials are allowed, but the Origin is set
to send wildcards (*
); this is not allowed by the CORS protocol.
Disable Vary
header support.
Disable Vary
header support.
When enabled the header Vary: Origin
will be returned as per the Fetch Standard
implementation guidelines.
Setting this header when the Access-Control-Allow-Origin
is dynamically generated
(eg. when there is more than one allowed origin, and an Origin other than ‘*’ is returned)
informs CDNs and other caches that the CORS headers are dynamic, and cannot be cached.
By default, Vary
header support is enabled.
Disable support for preflight requests.
+Disable support for preflight requests.
When enabled CORS middleware automatically handles OPTIONS
requests.
This is useful for application level middleware.
By default preflight support is enabled.
-Responses produced by the service.
+Responses produced by the service.
Errors produced by the service.
The TransformService
value created by this factory
The future response value.
-Creates and returns a new Transform component, asynchronously
+Creates and returns a new Transform component, asynchronously
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Opinionated request identity service for Actix Web apps.
+Opinionated request identity service for Actix Web apps.
IdentityService
middleware can be used with different policies types to store
identity information.
A cookie based policy is provided. CookieIdentityPolicy
uses cookies as identity storage.
Identity policy.
Helper trait that allows to get Identity.
-pub struct CookieIdentityPolicy(_);
Use cookies for request identity storage.
+pub struct CookieIdentityPolicy(_);
Use cookies for request identity storage.
See this page on MDN for details on cookie attributes.
use actix_web::App;
@@ -48,20 +49,20 @@ into the issued cookies, making it immutable to users.
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub struct Identity(_);
The extractor type to obtain your identity from a request.
+pub struct Identity(_);
The extractor type to obtain your identity from a request.
use actix_web::*;
use actix_identity::Identity;
@@ -55,23 +56,23 @@ found associated with the request.
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub struct IdentityService<T> { /* fields omitted */ }
Request identity middleware
+pub struct IdentityService<T> { /* fields omitted */ }
Request identity middleware
use actix_web::App;
use actix_identity::{CookieIdentityPolicy, IdentityService};
@@ -13,7 +14,7 @@
// wrap policy into identity middleware
.wrap(IdentityService::new(policy));
Responses produced by the service.
+Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub trait IdentityPolicy: Sized + 'static {
+ Trait actix_identity::IdentityPolicy [−][src]
pub trait IdentityPolicy: Sized + 'static {
type Future: Future<Output = Result<Option<String>, Error>>;
type ResponseFuture: Future<Output = Result<(), Error>>;
fn from_request(&self, req: &mut ServiceRequest) -> Self::Future;
@@ -9,5 +10,5 @@
type ResponseFuture: Future<Output = Result<(), Error>>
The return type of the middleware
Required methods
fn from_request(&self, req: &mut ServiceRequest) -> Self::Future
Parse the session from request and load data from a service identity.
fn to_response<B>(
&self,
identity: Option<String>,
changed: bool,
response: &mut ServiceResponse<B>
) -> Self::ResponseFuture
Write changes to response
-Implementors
type ResponseFuture = Ready<Result<(), Error>>
pub trait RequestIdentity {
+ Trait actix_identity::RequestIdentity [−][src]
pub trait RequestIdentity {
fn get_identity(&self) -> Option<String>;
}
Expand description
Helper trait that allows to get Identity.
It could be used in middleware but identity policy must be set before any other middleware that
needs identity. RequestIdentity is implemented both for ServiceRequest
and HttpRequest
.
-Required methods
fn get_identity(&self) -> Option<String>
Implementors
+
pub enum ProtoBufPayloadError {
+ Enum actix_protobuf::ProtoBufPayloadError [−][src]
pub enum ProtoBufPayloadError {
Overflow,
ContentType,
Serialize(ProtoBufEncodeError),
@@ -19,21 +20,21 @@
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub struct ProtoBuf<T: Message>(pub T);
0: T
Formats the value using the given formatter. Read more
+pub struct ProtoBuf<T: Message>(pub T);
0: T
Create a Self from request parts asynchronously.
Convert self to HttpResponse
.
Override a status code for a Responder. Read more
-Insert header to the final response. Read more
+Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub struct ProtoBufConfig { /* fields omitted */ }
Change max size of payload. By default max size is 256Kb
+pub struct ProtoBufConfig { /* fields omitted */ }
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Create ProtoBufMessage
for request.
The type of value produced on completion.
Attempt to resolve the future to a final value, registering @@ -7,7 +8,7 @@ the current task for wakeup if the value is not yet available. Auto Trait Implementations
Mutably borrows from an owned value. Read more
-into_future
)The output that the future will produce on completion.
into_future
)Which kind of future are we turning this into?
into_future
)Creates a future from a value.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub trait ProtoBufResponseBuilder {
+ Trait actix_protobuf::ProtoBufResponseBuilder [−][src]
pub trait ProtoBufResponseBuilder {
fn protobuf<T: Message>(&mut self, value: T) -> Result<HttpResponse, Error>;
-}
Required methods
Implementations on Foreign Types
Implementors
+}
pub enum Error {
+ Enum actix_redis::Error [−][src]
pub enum Error {
Redis(Error),
NotConnected,
Disconnected,
@@ -18,21 +19,21 @@
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub enum RespError {
+ Enum actix_redis::RespError [−]
pub enum RespError {
Internal(String),
IO(Error),
RESP(String, Option<RespValue>),
@@ -23,27 +24,27 @@ a proper option.
🔬 This is a nightly-only experimental API. (backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
👎 Deprecated since 1.42.0: use the Display impl or to_string()
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub enum RespValue {
+ Enum actix_redis::RespValue [−]
Trait Implementations
This method tests for self
and other
values to be equal, and is used
@@ -39,23 +40,23 @@ by ==
.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
-
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
-
+
pub enum SameSite {
+ Enum actix_redis::SameSite [−][src]
pub enum SameSite {
Strict,
Lax,
None,
@@ -59,24 +60,24 @@ by ==
.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
-
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
-
+
Redis integration for Actix and session store for Actix Web.
+Redis integration for Actix and session store for Actix Web.
pub struct Command(pub RespValue);
Command for send data to Redis
+pub struct Command(pub RespValue);
Command for send data to Redis
0: RespValue
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub struct RedisActor { /* fields omitted */ }
Redis communication actor
+pub struct RedisActor { /* fields omitted */ }
Redis communication actor
Start new Supervisor
with RedisActor
.
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub struct RedisSession(_);
Use redis as session storage.
+pub struct RedisSession(_);
Use redis as session storage.
You need to pass an address of the redis server and random value to the
constructor of RedisSession
. This is private key for cookie
session, When this value is changed, all session data is lost.
https
.
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub enum SessionStatus {
+ Enum actix_session::SessionStatus [−][src]
pub enum SessionStatus {
Changed,
Purged,
Renewed,
@@ -25,23 +26,23 @@ by ==
. impl StructuralPartialEq for SessionStatus
Auto Trait Implementations
impl RefUnwindSafe for SessionStatus
impl Send for SessionStatus
impl Sync for SessionStatus
impl Unpin for SessionStatus
impl UnwindSafe for SessionStatus
Blanket Implementations
Mutably borrows from an owned value. Read more
-
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
-
Sessions for Actix Web.
+Sessions for Actix Web.
Provides a general solution for session management. Session middleware could provide different implementations which could be accessed via general session API.
This crate provides a general solution for session management and includes a cookie backend. @@ -41,5 +42,5 @@ modifying session data.
Status of a Session
.
Extraction of a Session
object.
pub struct CookieSession(_);
Use cookies for session storage.
+pub struct CookieSession(_);
Use cookies for session storage.
CookieSession
creates sessions which are limited to storing
fewer than 4000 bytes of data (as the payload must fit into a single
cookie). An Internal Server Error is generated if the session contains more
@@ -50,7 +51,7 @@ connection is secure - i.e. https
Sets the expires
field in the session cookie being built.
Responses produced by the service.
+Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub struct Session(_);
The high-level interface you use to modify session data.
+pub struct Session(_);
The high-level interface you use to modify session data.
Session object is obtained with UserSession::get_session
. The UserSession
trait is
implemented for HttpRequest
, ServiceRequest
, and RequestHead
.
HttpRequest
, ServiceRequest
, and Ok("Welcome!")
}
Get a value
from the session.
Get a value
from the session.
Get all raw key-value data from the session.
Note that values are JSON encoded.
-Inserts a key-value pair into the session.
+Inserts a key-value pair into the session.
Any serializable value can be used and will be encoded as JSON in session data, hence why only a reference to the value is taken.
Remove value from the session.
If present, the JSON encoded value is returned.
-Remove value from the session and deserialize.
+Remove value from the session and deserialize.
Returns None if key was not present in session. Returns T if deserialization succeeds, otherwise returns un-deserialized JSON string.
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub trait UserSession {
+ Trait actix_session::UserSession [−][src]
pub trait UserSession {
fn get_session(&self) -> Session;
}
Expand description
Extraction of a Session
object.
Required methods
fn get_session(&self) -> Session
Extract the Session
object
-Implementations on Foreign Types
Implementors
+
Extractor for the “Basic” HTTP Authentication Scheme
+Extractor for the “Basic” HTTP Authentication Scheme
Extractor for HTTP Basic auth.
BasicAuth
extractor configuration,
used for WWW-Authenticate
header later.
pub struct BasicAuth(_);
Extractor for HTTP Basic auth.
+pub struct BasicAuth(_);
Extractor for HTTP Basic auth.
use actix_web::Result;
use actix_web_httpauth::extractors::basic::BasicAuth;
@@ -38,23 +39,23 @@ response header.
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub struct Config(_);
BasicAuth
extractor configuration,
+
pub struct Config(_);
BasicAuth
extractor configuration,
used for WWW-Authenticate
header later.
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub enum Error {
+ Enum actix_web_httpauth::extractors::bearer::Error [−][src]
pub enum Error {
InvalidRequest,
InvalidToken,
InsufficientScope,
@@ -37,24 +38,24 @@ operator.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
-
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
-
+
Extractor for the “Bearer” HTTP Authentication Scheme
+Extractor for the “Bearer” HTTP Authentication Scheme
Extractor for HTTP Bearer auth
BearerAuth extractor configuration.
pub struct BearerAuth(_);
Extractor for HTTP Bearer auth
+pub struct BearerAuth(_);
Extractor for HTTP Bearer auth
use actix_web_httpauth::extractors::bearer::BearerAuth;
@@ -40,23 +41,23 @@ response header.
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub struct Config(_);
BearerAuth extractor configuration.
+pub struct Config(_);
BearerAuth extractor configuration.
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Type-safe authentication information extractors
+Type-safe authentication information extractors
Extractor for the “Basic” HTTP Authentication Scheme
Extractor for the “Bearer” HTTP Authentication Scheme
@@ -10,5 +11,5 @@ HTTP authentication scheme credentials from the request.Trait implemented for types that provides configuration for the authentication extractors.
-pub struct AuthenticationError<C: Challenge> { /* fields omitted */ }
Authentication error returned by authentication extractors.
+pub struct AuthenticationError<C: Challenge> { /* fields omitted */ }
Authentication error returned by authentication extractors.
Different extractors may extend AuthenticationError
implementation
in order to provide access to inner challenge fields.
Extended error customization for HTTP Bearer
auth.
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub trait AuthExtractor: Sized {
+ Trait actix_web_httpauth::extractors::AuthExtractor [−][src]
pub trait AuthExtractor: Sized {
type Error: Into<Error>;
type Future: Future<Output = Result<Self, Self::Error>>;
fn from_service_request(req: &ServiceRequest) -> Self::Future;
@@ -13,5 +14,5 @@ authentication scheme.
Associated Types
Required methods
fn from_service_request(req: &ServiceRequest) -> Self::Future
Parse the authentication credentials from the actix’ ServiceRequest
.
-Implementations on Foreign Types
Implementors
+
pub trait AuthExtractorConfig {
+ Trait actix_web_httpauth::extractors::AuthExtractorConfig [−][src]
pub trait AuthExtractorConfig {
type Inner: Challenge;
fn into_inner(self) -> Self::Inner;
}
Expand description
Trait implemented for types that provides configuration
for the authentication extractors.
Associated Types
Required methods
fn into_inner(self) -> Self::Inner
Convert the config instance into a HTTP challenge.
-Implementors
+
pub enum ParseError {
+ Enum actix_web_httpauth::headers::authorization::ParseError [−][src]
pub enum ParseError {
Invalid,
MissingScheme,
MissingField(&'static str),
@@ -27,21 +28,21 @@ your own authentication scheme.
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Authorization
header and various auth schemes
Authorization
header and various auth schemes
Authorization
header, defined in RFC 7235
Authentication scheme for Authorization
header.
pub struct Authorization<S: Scheme>(_);
Authorization
header, defined in RFC 7235
pub struct Authorization<S: Scheme>(_);
Authorization
header, defined in RFC 7235
The “Authorization” header field allows a user agent to authenticate itself with an origin server – usually, but not necessarily, after receiving a 401 (Unauthorized) response. Its value consists of @@ -27,8 +28,6 @@ implementation.
The type returned in the event of a conversion error.
-Try to convert value to a HeaderValue.
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
@@ -43,29 +42,31 @@ operator.This method tests greater than (for self
and other
) and is used by the >
operator. Read more
The type returned in the event of a conversion error.
+Try to convert value to a HeaderValue.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
+
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub struct Basic { /* fields omitted */ }
Credentials for Basic
authentication scheme, defined in RFC 7617
Creates Basic
credentials with provided user_id
and optional
+
pub struct Basic { /* fields omitted */ }
Credentials for Basic
authentication scheme, defined in RFC 7617
Creates Basic
credentials with provided user_id
and optional
password
.
let credentials = Basic::new("Alladin", Some("open sesame"));
The type returned in the event of a conversion error.
-Try to convert value to a HeaderValue.
-This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Try to parse the authentication scheme from the Authorization
header.
Try to parse the authentication scheme from the Authorization
header.
The type returned in the event of a conversion error.
+Try to convert value to a HeaderValue.
+Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub struct Bearer { /* fields omitted */ }
Credentials for Bearer
authentication scheme, defined in RFC6750
pub struct Bearer { /* fields omitted */ }
Credentials for Bearer
authentication scheme, defined in RFC6750
Should be used in combination with
Authorization
header.
The type returned in the event of a conversion error.
-Try to convert value to a HeaderValue.
Compares and returns the maximum of two values. Read more
Try to parse the authentication scheme from the Authorization
header.
The type returned in the event of a conversion error.
+Try to convert value to a HeaderValue.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub trait Scheme: IntoHeaderValue + Debug + Display + Clone + Send + Sync {
+ Trait actix_web_httpauth::headers::authorization::Scheme [−][src]
pub trait Scheme: TryIntoHeaderValue + Debug + Display + Clone + Send + Sync {
fn parse(header: &HeaderValue) -> Result<Self, ParseError>;
}
Expand description
Authentication scheme for Authorization
header.
Required methods
fn parse(header: &HeaderValue) -> Result<Self, ParseError>
Try to parse the authentication scheme from the Authorization
header.
-Implementors
+
Typed HTTP headers
+Typed HTTP headers
Authorization
header and various auth schemes
WWW-Authenticate
header and various auth challenges
Challenge for the “Basic” HTTP Authentication Scheme
+Challenge for the “Basic” HTTP Authentication Scheme
Challenge for WWW-Authenticate
header with HTTP Basic auth scheme,
described in RFC 7617
pub struct Basic { /* fields omitted */ }
Challenge for WWW-Authenticate
header with HTTP Basic auth scheme,
+
pub struct Basic { /* fields omitted */ }
Challenge for WWW-Authenticate
header with HTTP Basic auth scheme,
described in RFC 7617
use actix_web_httpauth::headers::www_authenticate::basic::Basic;
@@ -29,8 +30,6 @@ described in RFC 7617
The type returned in the event of a conversion error.
-Try to convert value to a HeaderValue.
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
@@ -45,28 +44,30 @@ operator.This method tests greater than (for self
and other
) and is used by the >
operator. Read more
The type returned in the event of a conversion error.
+Try to convert value to a HeaderValue.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub enum Error {
+ Enum actix_web_httpauth::headers::www_authenticate::bearer::Error [−][src]
pub enum Error {
InvalidRequest,
InvalidToken,
InsufficientScope,
@@ -37,24 +38,24 @@ operator.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
-
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
-
+
Challenge for the “Bearer” HTTP Authentication Scheme
+Challenge for the “Bearer” HTTP Authentication Scheme
Challenge for WWW-Authenticate
header with HTTP Bearer auth scheme,
described in RFC 6750
Builder for the Bearer
challenge.
pub struct Bearer { /* fields omitted */ }
Challenge for WWW-Authenticate
header with HTTP Bearer auth scheme,
+
pub struct Bearer { /* fields omitted */ }
Challenge for WWW-Authenticate
header with HTTP Bearer auth scheme,
described in RFC 6750
use actix_web_httpauth::headers::www_authenticate::bearer::{
@@ -34,8 +35,6 @@ described in RFC 6750
The type returned in the event of a conversion error.
-Try to convert value to a HeaderValue.
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
@@ -50,28 +49,30 @@ operator.This method tests greater than (for self
and other
) and is used by the >
operator. Read more
The type returned in the event of a conversion error.
+Try to convert value to a HeaderValue.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub struct BearerBuilder(_);
Builder for the Bearer
challenge.
pub struct BearerBuilder(_);
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
WWW-Authenticate
header and various auth challenges
WWW-Authenticate
header and various auth challenges
pub struct WwwAuthenticate<C: Challenge>(pub C);
WWW-Authenticate
header, described in RFC 7235
pub struct WwwAuthenticate<C: Challenge>(pub C);
0: C
Returns a copy of the value. Read more
+0: C
Returns the “default value” for a type. Read more
-Returns the “default value” for a type. Read more
+The type returned in the event of a conversion error.
-Try to convert value to a HeaderValue.
-This method tests for self
and other
values to be equal, and is used
+
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
The type returned in the event of a conversion error.
+Try to convert value to a HeaderValue.
+Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
+
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
pub trait Challenge: IntoHeaderValue + Debug + Display + Clone + Send + Sync {
+
+
HTTP authentication schemes for actix-web.
+HTTP authentication schemes for actix-web.
Provides:
Type-safe authentication information extractors
Typed HTTP headers
HTTP Authentication middleware.
-HTTP Authentication middleware.
+HTTP Authentication middleware.
Middleware for checking HTTP authentication.
-pub struct HttpAuthentication<T, F> where
T: AuthExtractor, { /* fields omitted */ }
Middleware for checking HTTP authentication.
+pub struct HttpAuthentication<T, F> where
T: AuthExtractor, { /* fields omitted */ }
Middleware for checking HTTP authentication.
If there is no Authorization
header in the request, this middleware returns an error
immediately, without calling the F
callback.
Otherwise, it will pass both the request and the parsed credentials into it. In case of
successful validation F
callback is required to return the ServiceRequest
back.
Construct HttpAuthentication
middleware with the provided auth extractor T
and
+
Construct HttpAuthentication
middleware with the provided auth extractor T
and
validation callback F
.
Construct HttpAuthentication
middleware for the HTTP “Basic” authentication scheme.
// In this example validator returns immediately, but since it is required to return
// anything that implements `IntoFuture` trait, it can be extended to query database or to
@@ -20,7 +21,7 @@ validation callback F
.
}
let middleware = HttpAuthentication::basic(validator);
Construct HttpAuthentication
middleware for the HTTP “Bearer” authentication scheme.
async fn validator(req: ServiceRequest, credentials: BearerAuth) -> Result<ServiceRequest, Error> {
if credentials.token() == "mF_9.B5f-4.1JqM" {
@@ -36,35 +37,35 @@ validation callback F
.
}
let middleware = HttpAuthentication::bearer(validator);
Returns a copy of the value. Read more
+Responses produced by the service.
+Responses produced by the service.
Errors produced by the service.
The TransformService
value created by this factory
Creates and returns a new Transform component, asynchronously
+Creates and returns a new Transform component, asynchronously
Mutably borrows from an owned value. Read more
-Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Access-Control-Request-Headers
has an …","Request header Access-Control-Request-Method
has an …","Builder for CORS middleware.","Errors that can occur when processing CORS guarded …","One or more request headers are not allowed.","Request method is not allowed.","Request header Origin
is required but was not provided.","Request header Access-Control-Request-Method
is required …","Origin is not allowed to make this request.","Allowed origin argument must not be wildcard (*
).","Resets allowed request header list to a state where any …","Resets allowed methods list to all methods.","Resets allowed origin list to a state where any origin is …","Add an allowed request header.","Set a list of request header field names which can be used …","Set a list of methods which allowed origins can perform.","Add an origin that is allowed to make requests.","Determinate allowed origins by processing requests which …","","","","","","","A restrictive (security paranoid) set of defaults.","Disable support for preflight requests.","Disable Vary
header support.","","Resets exposed response header list to a state where any …","Set a list of headers which are safe to expose to the API …","","","","","","","","Set a maximum time (in seconds) for which this CORS …","","A very permissive set of default for quick development. …","Set to use wildcard origins.","","Allows users to make authenticated requests","","","","","","","","","",""],"i":[1,1,0,0,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,1,2,1,1,1,2,2,2,1,2,2,2,1,1,2,1,2,1,2,2,2,2,1,2,1,1,2,1,2,1,2,1,2,1],"f":[null,null,null,null,null,null,null,null,null,null,[[],["cors",3]],[[],["cors",3]],[[],["cors",3]],[[],["cors",3]],[[],["cors",3]],[[],["cors",3]],[[["str",15]],["cors",3]],[[],["cors",3]],[[]],[[]],[[]],[[]],[[],["corserror",4]],[[]],[[],["cors",3]],[[],["cors",3]],[[],["cors",3]],[[],["httpresponse",3]],[[],["cors",3]],[[],["cors",3]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[]],[[],["cors",3]],[[]],[[]],[[],["cors",3]],[[],["statuscode",3]],[[],["cors",3]],[[]],[[],["string",3]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]]],"p":[[4,"CorsError"],[3,"Cors"]]},\
"actix_identity":{"doc":"Opinionated request identity service for Actix Web apps.","t":[3,16,3,8,3,8,16,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11],"n":["CookieIdentityPolicy","Future","Identity","IdentityPolicy","IdentityService","RequestIdentity","ResponseFuture","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","domain","forget","from","from","from","from_request","from_request","from_request","get_identity","http_only","identity","into","into","into","login_deadline","max_age","max_age_secs","name","new","new","new_transform","path","remember","same_site","secure","to_owned","to_response","to_response","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","visit_deadline","vzip","vzip","vzip"],"q":["actix_identity","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"d":["Use cookies for request identity storage.","The return type of the middleware","The extractor type to obtain your identity from a request.","Identity policy.","Request identity middleware","Helper trait that allows to get Identity.","The return type of the middleware","","","","","","","","","Sets the Domain
attribute of issued cookies.","This method is used to ‘forget’ the current identity …","","","","Parse the session from request and load data from a …","","","","Sets the HttpOnly
attribute of issued cookies.","Return the claimed identity of the user associated request …","","","","Accepts only users who authenticated within the given …","Sets the Max-Age
attribute of issued cookies.","Sets the Max-Age
attribute of issued cookies with given …","Sets the name of issued cookies.","Create new CookieIdentityPolicy
instance.","Create new identity service with specified backend.","","Sets the Path
attribute of issued cookies.","Remember identity.","Sets the SameSite
attribute of issued cookies.","Sets the Secure
attribute of issued cookies.","","Write changes to response","","","","","","","","","","","Accepts only users who have visited within given deadline.","","",""],"i":[0,1,0,0,0,0,1,2,3,4,2,3,4,4,4,2,4,2,3,4,1,2,4,5,2,4,2,3,4,2,2,2,2,2,3,3,2,4,2,2,4,1,2,2,3,4,2,3,4,2,3,4,2,2,3,4],"f":[null,null,null,null,null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[],["identity",3]],[[]],[[],["cookieidentitypolicy",3]],[[]],[[]],[[]],[[]],[[["servicerequest",3]]],[[["servicerequest",3]]],[[["httprequest",3],["payload",4]]],[[],["option",4,[["string",3]]]],[[["bool",15]]],[[],["option",4,[["string",3]]]],[[]],[[]],[[]],[[["duration",3]],["cookieidentitypolicy",3]],[[["duration",3]],["cookieidentitypolicy",3]],[[["i64",15]],["cookieidentitypolicy",3]],[[],["cookieidentitypolicy",3]],[[],["cookieidentitypolicy",3]],[[]],[[]],[[],["cookieidentitypolicy",3]],[[["string",3]]],[[["samesite",4]]],[[["bool",15]],["cookieidentitypolicy",3]],[[]],[[["option",4,[["string",3]]],["bool",15],["serviceresponse",3]]],[[["option",4,[["string",3]]],["bool",15],["serviceresponse",3]]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[["duration",3]],["cookieidentitypolicy",3]],[[]],[[]],[[]]],"p":[[8,"IdentityPolicy"],[3,"CookieIdentityPolicy"],[3,"IdentityService"],[3,"Identity"],[8,"RequestIdentity"]]},\
"actix_protobuf":{"doc":"","t":[12,13,13,13,13,3,3,3,4,8,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12],"n":["0","ContentType","Deserialize","Overflow","Payload","ProtoBuf","ProtoBufConfig","ProtoBufMessage","ProtoBufPayloadError","ProtoBufResponseBuilder","Serialize","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","default","deref","deref_mut","error_response","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from_request","into","into","into","into","into_future","limit","limit","new","poll","protobuf","respond_to","to_string","to_string","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_poll","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","0","0","0"],"q":["actix_protobuf","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_protobuf::ProtoBufPayloadError","",""],"d":["","Content type error","Deserialize error","Payload size is bigger than 256k","Payload error","","","","","","Serialize error","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Change max size of payload. By default max size is 256Kb","Change max size of payload. By default max size is 256Kb","Create ProtoBufMessage
for request.","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[1,2,2,2,2,0,0,0,0,0,2,1,3,4,2,1,3,4,2,3,1,1,2,1,1,2,2,1,3,4,2,2,2,1,1,3,4,2,4,3,4,4,4,5,1,1,2,1,3,4,2,1,3,4,2,4,1,3,4,2,1,3,4,2,6,7,8],"f":[null,null,null,null,null,null,null,null,null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["httpresponse",3]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[]],[[["payloaderror",4]],["protobufpayloaderror",4]],[[["protobufdecodeerror",3]],["protobufpayloaderror",4]],[[["httprequest",3],["payload",4]]],[[]],[[]],[[]],[[]],[[]],[[["usize",15]]],[[["usize",15]]],[[["httprequest",3],["payload",4]]],[[["pin",3],["context",3]],["poll",4]],[[["message",8]],["result",4,[["httpresponse",3],["error",3]]]],[[["httprequest",3]],["httpresponse",3]],[[],["string",3]],[[],["string",3]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[["pin",3],["context",3]],["poll",4]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],[[]],[[]],null,null,null],"p":[[3,"ProtoBuf"],[4,"ProtoBufPayloadError"],[3,"ProtoBufConfig"],[3,"ProtoBufMessage"],[8,"ProtoBufResponseBuilder"],[13,"Serialize"],[13,"Deserialize"],[13,"Payload"]]},\
-"actix_redis":{"doc":"Redis integration for Actix and session store for Actix …","t":[12,13,13,3,13,13,4,13,13,13,13,13,13,13,13,13,13,3,3,13,4,4,4,13,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12],"n":["0","Array","BulkString","Command","Connection","Disconnected","Error","Error","IO","Integer","Internal","Lax","Nil","None","NotConnected","RESP","Redis","RedisActor","RedisSession","Remote","RespError","RespValue","SameSite","SimpleString","Strict","Unexpected","append","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","cache_keygen","clone","clone","clone_into","clone_into","cookie_domain","cookie_http_only","cookie_max_age","cookie_name","cookie_path","cookie_same_site","cookie_secure","eq","eq","equivalent","equivalent","error","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_resp_int","get_hash","handle","handle","hash","into","into","into","into","into","into","into","is_lax","is_none","is_strict","ne","new","new_transform","push","restarting","source","source","start","started","to_owned","to_owned","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","ttl","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","0","0","0","0","0","0","0","1","0","0","0","0","0"],"q":["actix_redis","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_redis::Error","actix_redis::RespError","","","","","","","actix_redis::RespValue","","","",""],"d":["","Zero, one or more other RespValue
s.","A bulk string. In Redis terminology a string is a …","Command for send data to Redis","Error creating a connection, or an error with a connection …","Cancel all waters when connection get dropped","General purpose actix redis error","An error from the Redis server","An IO error occurred","Redis documentation defines an integer as being a signed …","A non-specific internal error that prevented an operation …","The “Lax” SameSite
attribute.","","The “None” SameSite
attribute.","Receiving message during reconnecting","A RESP parsing/serialising error occurred","","Redis communication actor","Use redis as session storage.","A remote error","","A single RESP value, this owns the data that is read/to-be …","The SameSite
cookie attribute.","","The “Strict” SameSite
attribute.","An unexpected error. In this context “unexpected” …","Convenience function for building dynamic Redis commands …","","","","","","","","","","","","","","","Set a custom cache key generation strategy, expecting …","","","","","Set custom cookie domain.","Set custom cookie HttpOnly
policy.","Set custom cookie max-age.","Set custom cookie name for session ID.","Set custom cookie path.","Set custom cookie SameSite
attribute.","Set custom cookie secure.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns true
if self
is SameSite::Lax
and false
otherwise.","Returns true
if self
is SameSite::None
and false
otherwise.","Returns true
if self
is SameSite::Strict
and false
…","","Create new redis session backend","","Push item to Resp array","","","","Start new Supervisor
with RedisActor
.","","","","","","","","","","","","","","","","","","","","","Set time to live in seconds for session value.","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[1,2,2,0,3,4,0,2,3,2,3,5,2,5,4,3,4,0,0,3,0,0,0,2,5,3,2,6,7,1,4,2,3,5,6,7,1,4,2,3,5,7,2,5,2,5,7,7,7,7,7,7,7,2,5,2,5,6,1,4,4,2,3,3,5,5,6,7,1,4,4,2,2,2,2,2,2,2,2,3,3,3,5,2,5,6,6,5,6,7,1,4,2,3,5,5,5,5,2,7,7,2,6,4,3,6,6,2,5,4,3,5,6,7,1,4,2,3,5,6,7,1,4,2,3,5,7,6,7,1,4,2,3,5,6,7,1,4,2,3,5,8,9,10,11,12,13,14,11,15,16,17,18,19],"f":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[[],["respvalue",4]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[["box",3,[["fn",8]]]]],[[],["respvalue",4]],[[],["samesite",4]],[[]],[[]],[[["str",15]]],[[["bool",15]]],[[]],[[["str",15]]],[[["str",15]]],[[["samesite",4]]],[[["bool",15]]],[[["respvalue",4]],["bool",15]],[[["samesite",4]],["bool",15]],[[],["bool",15]],[[],["bool",15]],[[["error",3]],["running",4]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",4,[["error",3]]]],[[["formatter",3]],["result",4,[["error",3]]]],[[["formatter",3]],["result",4,[["error",3]]]],[[["formatter",3]],["result",4,[["error",3]]]],[[["formatter",3]],["result",4,[["error",3]]]],[[]],[[]],[[]],[[]],[[["error",4]],["error",4]],[[]],[[["vec",3,[["u8",15],["global",3]]]],["respvalue",4]],[[["usize",15]],["respvalue",4]],[[["string",3]],["respvalue",4]],[[["str",15]],["respvalue",4]],[[["string",3]],["respvalue",4]],[[["arc",3,[["str",15]]]],["respvalue",4]],[[],["respvalue",4]],[[]],[[["error",3]],["error",4]],[[["trysenderror",3]],["error",4]],[[]],[[["respvalue",4]],["result",4,[["respvalue",4],["error",4]]]],[[],["u64",15]],[[["command",3]]],[[["result",4,[["respvalue",4],["resperror",4]]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["bool",15]],[[],["bool",15]],[[],["bool",15]],[[["respvalue",4]],["bool",15]],[[["into",8,[["string",3]]]],["redissession",3]],[[]],[[]],[[]],[[],["option",4,[["error",8]]]],[[],["option",4,[["error",8]]]],[[["into",8,[["string",3]]]],["addr",3,[["redisactor",3]]]],[[["context",3]]],[[]],[[]],[[],["string",3]],[[],["string",3]],[[],["string",3]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[["u32",15]]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],null,null,null,null,null,null,null,null,null,null,null,null,null],"p":[[3,"Command"],[4,"RespValue"],[4,"RespError"],[4,"Error"],[4,"SameSite"],[3,"RedisActor"],[3,"RedisSession"],[13,"Redis"],[13,"Internal"],[13,"IO"],[13,"RESP"],[13,"Remote"],[13,"Connection"],[13,"Unexpected"],[13,"Array"],[13,"BulkString"],[13,"Error"],[13,"Integer"],[13,"SimpleString"]]},\
+"actix_redis":{"doc":"Redis integration for Actix and session store for Actix …","t":[12,13,13,3,13,13,4,13,13,13,13,13,13,13,13,13,13,3,3,13,4,4,4,13,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12],"n":["0","Array","BulkString","Command","Connection","Disconnected","Error","Error","IO","Integer","Internal","Lax","Nil","None","NotConnected","RESP","Redis","RedisActor","RedisSession","Remote","RespError","RespValue","SameSite","SimpleString","Strict","Unexpected","append","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","cache_keygen","clone","clone","clone_into","clone_into","cookie_domain","cookie_http_only","cookie_max_age","cookie_name","cookie_path","cookie_same_site","cookie_secure","eq","eq","equivalent","equivalent","error","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_resp_int","get_hash","handle","handle","hash","into","into","into","into","into","into","into","is_lax","is_none","is_strict","ne","new","new_transform","push","restarting","source","source","start","started","to_owned","to_owned","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","ttl","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","0","0","0","0","0","0","0","1","0","0","0","0","0"],"q":["actix_redis","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_redis::Error","actix_redis::RespError","","","","","","","actix_redis::RespValue","","","",""],"d":["","Zero, one or more other RespValue
s.","A bulk string. In Redis terminology a string is a …","Command for send data to Redis","Error creating a connection, or an error with a connection …","Cancel all waters when connection get dropped","General purpose actix redis error","An error from the Redis server","An IO error occurred","Redis documentation defines an integer as being a signed …","A non-specific internal error that prevented an operation …","The “Lax” SameSite
attribute.","","The “None” SameSite
attribute.","Receiving message during reconnecting","A RESP parsing/serialising error occurred","","Redis communication actor","Use redis as session storage.","A remote error","","A single RESP value, this owns the data that is read/to-be …","The SameSite
cookie attribute.","","The “Strict” SameSite
attribute.","An unexpected error. In this context “unexpected” …","Convenience function for building dynamic Redis commands …","","","","","","","","","","","","","","","Set a custom cache key generation strategy, expecting …","","","","","Set custom cookie domain.","Set custom cookie HttpOnly
policy.","Set custom cookie max-age.","Set custom cookie name for session ID.","Set custom cookie path.","Set custom cookie SameSite
attribute.","Set custom cookie secure.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns true
if self
is SameSite::Lax
and false
otherwise.","Returns true
if self
is SameSite::None
and false
otherwise.","Returns true
if self
is SameSite::Strict
and false
…","","Create new redis session backend","","Push item to Resp array","","","","Start new Supervisor
with RedisActor
.","","","","","","","","","","","","","","","","","","","","","Set time to live in seconds for session value.","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[1,2,2,0,3,4,0,2,3,2,3,5,2,5,4,3,4,0,0,3,0,0,0,2,5,3,2,6,7,1,4,5,2,3,6,7,1,4,5,2,3,7,5,2,5,2,7,7,7,7,7,7,7,5,2,5,2,6,1,4,4,5,5,2,3,3,6,7,1,4,4,5,2,2,2,2,2,2,2,2,3,3,3,2,5,6,6,5,6,7,1,4,5,2,3,5,5,5,2,7,7,2,6,4,3,6,6,5,2,4,5,3,6,7,1,4,5,2,3,6,7,1,4,5,2,3,7,6,7,1,4,5,2,3,6,7,1,4,5,2,3,8,9,10,11,12,13,14,11,15,16,17,18,19],"f":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[[],["respvalue",4]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[["box",3,[["fn",8]]]]],[[],["samesite",4]],[[],["respvalue",4]],[[]],[[]],[[["str",15]]],[[["bool",15]]],[[]],[[["str",15]]],[[["str",15]]],[[["samesite",4]]],[[["bool",15]]],[[["samesite",4]],["bool",15]],[[["respvalue",4]],["bool",15]],[[],["bool",15]],[[],["bool",15]],[[["error",3]],["running",4]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",4,[["error",3]]]],[[["formatter",3]],["result",4,[["error",3]]]],[[["formatter",3]],["result",4,[["error",3]]]],[[["formatter",3]],["result",4,[["error",3]]]],[[["formatter",3]],["result",4,[["error",3]]]],[[]],[[]],[[]],[[]],[[["error",4]],["error",4]],[[]],[[],["respvalue",4]],[[["vec",3,[["u8",15],["global",3]]]],["respvalue",4]],[[["string",3]],["respvalue",4]],[[["usize",15]],["respvalue",4]],[[]],[[["arc",3,[["str",15]]]],["respvalue",4]],[[["str",15]],["respvalue",4]],[[["string",3]],["respvalue",4]],[[["error",3]],["error",4]],[[["trysenderror",3]],["error",4]],[[]],[[["respvalue",4]],["result",4,[["respvalue",4],["error",4]]]],[[],["u64",15]],[[["command",3]]],[[["result",4,[["respvalue",4],["resperror",4]]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["bool",15]],[[],["bool",15]],[[],["bool",15]],[[["respvalue",4]],["bool",15]],[[["into",8,[["string",3]]]],["redissession",3]],[[]],[[]],[[]],[[],["option",4,[["error",8]]]],[[],["option",4,[["error",8]]]],[[["into",8,[["string",3]]]],["addr",3,[["redisactor",3]]]],[[["context",3]]],[[]],[[]],[[],["string",3]],[[],["string",3]],[[],["string",3]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[["u32",15]]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],null,null,null,null,null,null,null,null,null,null,null,null,null],"p":[[3,"Command"],[4,"RespValue"],[4,"RespError"],[4,"Error"],[4,"SameSite"],[3,"RedisActor"],[3,"RedisSession"],[13,"Redis"],[13,"Internal"],[13,"IO"],[13,"RESP"],[13,"Remote"],[13,"Connection"],[13,"Unexpected"],[13,"Array"],[13,"BulkString"],[13,"Error"],[13,"Integer"],[13,"SimpleString"]]},\
"actix_session":{"doc":"Sessions for Actix Web.","t":[13,3,13,13,3,4,13,8,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11],"n":["Changed","CookieSession","Purged","Renewed","Session","SessionStatus","Unchanged","UserSession","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clear","clone","clone","clone_into","clone_into","default","domain","entries","eq","expires_in","expires_in_time","fmt","from","from","from","from_request","get","get_changes","get_session","http_only","insert","into","into","into","lazy","max_age","max_age_time","name","new_transform","path","private","purge","remove","remove_as","renew","same_site","secure","set_session","signed","to_owned","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip"],"q":["actix_session","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"d":["Session has been updated and requires a new persist …","Use cookies for session storage.","Session is flagged for deletion and should be removed from …","Session is flagged for refresh.","The high-level interface you use to modify session data.","Status of a Session
.","Session is unchanged from when last seen (if exists).","Extraction of a Session
object.","","","","","","","Clear the session.","","","","","","Sets the domain
field in the session cookie being built.","Get all raw key-value data from the session.","","Sets the expires
field in the session cookie being built.","Sets the expires
field in the session cookie being built.","","","","","","Get a value
from the session.","Returns session status and iterator of key-value pairs of …","Extract the Session
object","Sets the http_only
field in the session cookie being built.","Inserts a key-value pair into the session.","","","","When true, prevents adding session cookies to responses …","Sets the max-age
field in the session cookie being built.","Sets the max-age
field in the session cookie being built.","Sets the name
field in the session cookie being built.","","Sets the path
field in the session cookie being built.","Construct new private CookieSession
instance.","Removes session both client and server side.","Remove value from the session.","Remove value from the session and deserialize.","Renews the session key, assigning existing session state …","Sets the same_site
field in the session cookie being built.","Sets the secure
field in the session cookie being built.","Adds the given key-value pairs to the session on the …","Construct new signed CookieSession
instance.","","","","","","","","","","","","","",""],"i":[1,0,1,1,0,0,1,0,2,3,1,2,3,1,2,3,1,3,1,1,3,2,1,3,3,1,2,3,1,2,2,2,4,3,2,2,3,1,3,3,3,3,3,3,3,2,2,2,2,3,3,2,3,3,1,2,3,1,2,3,1,2,3,1,2,3,1],"f":[null,null,null,null,null,null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["cookiesession",3]],[[],["sessionstatus",4]],[[]],[[]],[[],["sessionstatus",4]],[[["into",8,[["string",3]]]],["cookiesession",3]],[[],["ref",3,[["hashmap",3,[["string",3],["string",3]]]]]],[[["sessionstatus",4]],["bool",15]],[[["i64",15]],["cookiesession",3]],[[["duration",3]],["cookiesession",3]],[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[["httprequest",3],["payload",4]]],[[["str",15]],["result",4,[["option",4,[["deserializeowned",8]]],["error",3]]]],[[["serviceresponse",3]]],[[],["session",3]],[[["bool",15]],["cookiesession",3]],[[],["result",4,[["error",3]]]],[[]],[[]],[[]],[[["bool",15]],["cookiesession",3]],[[["i64",15]],["cookiesession",3]],[[["duration",3]],["cookiesession",3]],[[["into",8,[["string",3]]]],["cookiesession",3]],[[]],[[["into",8,[["string",3]]]],["cookiesession",3]],[[],["cookiesession",3]],[[]],[[["str",15]],["option",4,[["string",3]]]],[[["str",15]],["option",4,[["result",4,[["deserializeowned",8],["string",3]]]]]],[[]],[[["samesite",4]],["cookiesession",3]],[[["bool",15]],["cookiesession",3]],[[["servicerequest",3]]],[[],["cookiesession",3]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],[[]]],"p":[[4,"SessionStatus"],[3,"Session"],[3,"CookieSession"],[8,"UserSession"]]},\
-"actix_web_httpauth":{"doc":"HTTP authentication schemes for actix-web.","t":[0,0,0,8,8,3,16,16,16,0,0,11,11,11,11,11,11,11,11,10,11,10,11,11,11,11,11,11,11,11,11,11,11,3,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,3,4,13,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,0,0,3,13,3,3,13,13,13,4,8,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,8,3,0,0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,3,4,13,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11],"n":["extractors","headers","middleware","AuthExtractor","AuthExtractorConfig","AuthenticationError","Error","Future","Inner","basic","bearer","borrow","borrow_mut","challenge_mut","error_response","fmt","fmt","from","from","from_service_request","into","into_inner","new","status_code","status_code_mut","to_string","try_from","try_into","type_id","vzip","with_error","with_error_description","with_error_uri","BasicAuth","Config","as_ref","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","default","fmt","fmt","from","from","from_request","from_service_request","into","into","into_inner","password","realm","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","user_id","vzip","vzip","BearerAuth","Config","Error","InsufficientScope","InvalidRequest","InvalidToken","as_ref","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","default","eq","equivalent","fmt","fmt","fmt","fmt","from","from","from","from_request","from_service_request","get_hash","hash","into","into","into","into_inner","partial_cmp","realm","scope","status_code","to_owned","to_owned","to_owned","to_string","token","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","authorization","www_authenticate","Authorization","Base64DecodeError","Basic","Bearer","Invalid","MissingField","MissingScheme","ParseError","Scheme","ToStrError","Utf8Error","as_mut","as_ref","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","cmp","cmp","default","eq","eq","eq","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","get_hash","hash","into","into","into","into","into_scheme","name","ne","ne","ne","new","new","parse","parse","parse","parse","partial_cmp","partial_cmp","partial_cmp","password","source","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","token","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into_header_pair","try_into_value","try_into_value","try_into_value","type_id","type_id","type_id","type_id","user_id","vzip","vzip","vzip","vzip","0","0","0","0","0","Challenge","WwwAuthenticate","basic","bearer","borrow","borrow_mut","clone","clone_into","cmp","default","eq","equivalent","fmt","from","get_hash","hash","into","name","ne","parse","partial_cmp","to_bytes","to_owned","try_from","try_into","try_into_header_pair","try_into_value","type_id","vzip","Basic","borrow","borrow_mut","clone","clone_into","cmp","default","eq","equivalent","fmt","fmt","from","get_hash","hash","into","ne","new","partial_cmp","to_owned","to_string","try_from","try_into","try_into_value","type_id","vzip","with_realm","Bearer","BearerBuilder","Error","InsufficientScope","InvalidRequest","InvalidToken","borrow","borrow","borrow_mut","borrow_mut","build","clone","clone_into","cmp","default","default","eq","equivalent","error","error_description","error_uri","finish","fmt","fmt","fmt","from","from","get_hash","hash","into","into","ne","partial_cmp","realm","scope","to_owned","to_string","try_from","try_from","try_into","try_into","try_into_value","type_id","type_id","vzip","vzip","HttpAuthentication","basic","bearer","borrow","borrow_mut","clone","clone_into","fmt","from","into","new_transform","to_owned","try_from","try_into","type_id","vzip","with_fn"],"q":["actix_web_httpauth","","","actix_web_httpauth::extractors","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::extractors::basic","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::extractors::bearer","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers","","actix_web_httpauth::headers::authorization","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers::authorization::ParseError","","","","actix_web_httpauth::headers::www_authenticate","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers::www_authenticate::basic","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers::www_authenticate::bearer","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::middleware","","","","","","","","","","","","","","","",""],"d":["Type-safe authentication information extractors","Typed HTTP headers","HTTP Authentication middleware.","Trait implemented by types that can extract HTTP …","Trait implemented for types that provides configuration …","Authentication error returned by authentication extractors.","The associated error which can be returned.","Future that resolves into extracted credentials type.","Associated challenge type.","Extractor for the “Basic” HTTP Authentication Scheme","Extractor for the “Bearer” HTTP Authentication Scheme","","","Returns mutable reference to the inner challenge instance.","","","","","","Parse the authentication credentials from the actix’ …","","Convert the config instance into a HTTP challenge.","Creates new authentication error from the provided …","","Returns mutable reference to the inner status code.","","","","","","Attach Error
to the current Authentication error.","Attach error description to the current Authentication …","Attach error URI to the current Authentication error.","Extractor for HTTP Basic auth.","BasicAuth
extractor configuration, used for …","","","","","","","","","","","","","","","","","","","","Returns client’s password.","Set challenge realm
attribute.","","","","","","","","","Returns client’s user-ID.","","","Extractor for HTTP Bearer auth","BearerAuth extractor configuration.","Bearer authorization error types, described in RFC 6750","The request requires higher privileges than provided by …","The request is missing a required parameter, includes an …","The access token provided is expired, revoked, malformed, …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Set challenge realm
attribute.","Set challenge scope
attribute.","Returns HTTP status code suitable for current error type.","","","","","Returns bearer token provided by client.","","","","","","","","","","","","","Authorization
header and various auth schemes","WWW-Authenticate
header and various auth challenges","Authorization
header, defined in RFC 7235","Malformed base64 string","Credentials for Basic
authentication scheme, defined in …","Credentials for Bearer
authentication scheme, defined in …","Header value is malformed","Required authentication field is missing","Authentication scheme is missing","Possible errors while parsing Authorization
header.","Authentication scheme for Authorization
header.","Unable to convert header into the str","Malformed UTF-8 string","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Consumes Authorization
header and returns inner Scheme
…","","","","","Creates Basic
credentials with provided user_id
and …","Creates new Bearer
credentials with the token provided.","Try to parse the authentication scheme from the …","","","","","","","Returns client’s password if provided.","","","","","","","","","Gets reference to the credentials token.","","","","","","","","","","","","","","","","","Returns client’s user-ID.","","","","","","","","","","Authentication challenge for WWW-Authenticate
header.","WWW-Authenticate
header, described in RFC 7235","Challenge for the “Basic” HTTP Authentication Scheme","Challenge for the “Bearer” HTTP Authentication Scheme","","","","","","","","","","","","","","","","","","Converts the challenge into a bytes suitable for HTTP …","","","","","","","","Challenge for WWW-Authenticate
header with HTTP Basic auth …","","","","","","","","","","","","","","","","Creates new Basic
challenge with an empty realm
field.","","","","","","","","","Creates new Basic
challenge from the provided realm
field …","Challenge for WWW-Authenticate
header with HTTP Bearer …","Builder for the Bearer
challenge.","Bearer authorization error types, described in RFC 6750","The request requires higher privileges than provided by …","The request is missing a required parameter, includes an …","The access token provided is expired, revoked, malformed, …","","","","","Creates the builder for Bearer
challenge.","","","","","","","","Provides the error
attribute, as defined in RFC6750, …","Provides the error_description
attribute, as defined in …","Provides the error_uri
attribute, as defined in RFC6750, …","Consumes the builder and returns built Bearer
instance.","","","","","","","","","","","","Provides the realm
attribute, as defined in RFC2617","Provides the scope
attribute, as defined in RFC6749, …","","","","","","","","","","","","Middleware for checking HTTP authentication.","Construct HttpAuthentication
middleware for the HTTP “…","Construct HttpAuthentication
middleware for the HTTP “…","","","","","","","","","","","","","","Construct HttpAuthentication
middleware with the provided …"],"i":[0,0,0,0,0,0,1,1,2,0,0,3,3,3,3,3,3,3,3,1,3,2,3,3,3,3,3,3,3,3,3,3,3,0,0,4,4,5,4,5,4,5,4,5,4,4,5,4,5,5,5,4,5,4,5,4,4,5,4,5,4,5,4,5,5,4,5,0,0,0,6,6,6,7,7,8,6,7,8,6,7,8,6,7,8,6,6,7,6,6,7,8,6,6,7,8,6,8,8,6,6,7,8,6,7,6,7,7,6,7,8,6,6,8,7,8,6,7,8,6,7,8,6,7,8,6,0,0,0,9,0,0,9,9,9,0,0,9,9,10,10,9,10,11,12,9,10,11,12,10,11,12,10,11,12,10,11,12,10,10,11,12,10,11,12,9,9,10,10,11,11,12,12,9,9,9,9,10,10,10,11,12,10,10,9,10,11,12,10,10,10,11,12,11,12,13,10,11,12,10,11,12,11,9,10,11,12,9,10,11,12,12,9,10,11,12,9,10,11,12,10,10,11,12,9,10,11,12,11,9,10,11,12,14,15,16,17,18,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,19,18,18,18,18,18,18,18,0,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,0,0,0,6,6,6,21,22,21,22,22,22,22,22,21,22,22,22,21,21,21,21,21,22,22,21,22,22,22,21,22,22,22,21,21,22,22,21,22,21,22,22,21,22,21,22,0,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23],"f":[null,null,null,null,null,null,null,null,null,null,null,[[]],[[]],[[]],[[],["httpresponse",3]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[["servicerequest",3]]],[[]],[[]],[[],["authenticationerror",3]],[[],["statuscode",3]],[[],["statuscode",3]],[[],["string",3]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],[[["error",4]]],[[]],[[]],null,null,[[],["challenge",3]],[[]],[[]],[[]],[[]],[[],["config",3]],[[],["basicauth",3]],[[]],[[]],[[],["config",3]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[["httprequest",3],["payload",4]]],[[["servicerequest",3]]],[[]],[[]],[[]],[[],["option",4,[["cow",4]]]],[[],["config",3]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[],["cow",4]],[[]],[[]],null,null,null,null,null,null,[[],["bearer",3]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["config",3]],[[],["bearerauth",3]],[[],["error",4]],[[]],[[]],[[]],[[["error",4]],["ordering",4]],[[],["config",3]],[[["error",4]],["bool",15]],[[],["bool",15]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[["httprequest",3],["payload",4]]],[[["servicerequest",3]]],[[],["u64",15]],[[]],[[]],[[]],[[]],[[]],[[["error",4]],["option",4,[["ordering",4]]]],[[["into",8,[["cow",4,[["str",15]]]]]],["config",3]],[[["into",8,[["cow",4,[["str",15]]]]]],["config",3]],[[],["statuscode",3]],[[]],[[]],[[]],[[],["string",3]],[[],["str",15]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],[[]],null,null,null,null,null,null,null,null,null,null,null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["authorization",3]],[[],["basic",3]],[[],["bearer",3]],[[]],[[]],[[]],[[["authorization",3]],["ordering",4]],[[["basic",3]],["ordering",4]],[[["bearer",3]],["ordering",4]],[[],["authorization",3]],[[["authorization",3]],["bool",15]],[[["basic",3]],["bool",15]],[[["bearer",3]],["bool",15]],[[],["bool",15]],[[],["bool",15]],[[],["bool",15]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["decodeerror",4]]],[[]],[[["tostrerror",3]]],[[["utf8error",3]]],[[["never",15]]],[[]],[[],["authorization",3]],[[]],[[]],[[],["u64",15]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["headername",3]],[[["authorization",3]],["bool",15]],[[["basic",3]],["bool",15]],[[["bearer",3]],["bool",15]],[[["option",4]],["basic",3]],[[],["bearer",3]],[[["headervalue",3]],["result",4,[["parseerror",4]]]],[[],["result",4,[["parseerror",4]]]],[[["headervalue",3]],["result",4,[["parseerror",4]]]],[[["headervalue",3]],["result",4,[["parseerror",4]]]],[[["authorization",3]],["option",4,[["ordering",4]]]],[[["basic",3]],["option",4,[["ordering",4]]]],[[["bearer",3]],["option",4,[["ordering",4]]]],[[],["option",4,[["cow",4]]]],[[],["option",4,[["error",8]]]],[[]],[[]],[[]],[[],["string",3]],[[],["string",3]],[[],["string",3]],[[],["string",3]],[[],["cow",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4,[["headervalue",3]]]],[[],["result",4,[["headervalue",3]]]],[[],["result",4,[["headervalue",3]]]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["cow",4]],[[]],[[]],[[]],[[]],null,null,null,null,null,null,null,null,null,[[]],[[]],[[],["wwwauthenticate",3]],[[]],[[["wwwauthenticate",3]],["ordering",4]],[[],["wwwauthenticate",3]],[[["wwwauthenticate",3]],["bool",15]],[[],["bool",15]],[[["formatter",3]],["result",6]],[[]],[[],["u64",15]],[[]],[[]],[[],["headername",3]],[[["wwwauthenticate",3]],["bool",15]],[[],["result",4,[["parseerror",4]]]],[[["wwwauthenticate",3]],["option",4,[["ordering",4]]]],[[],["bytes",3]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4,[["headervalue",3]]]],[[],["typeid",3]],[[]],null,[[]],[[]],[[],["basic",3]],[[]],[[["basic",3]],["ordering",4]],[[],["basic",3]],[[["basic",3]],["bool",15]],[[],["bool",15]],[[["formatter",3]],["result",4,[["error",3]]]],[[["formatter",3]],["result",6]],[[]],[[],["u64",15]],[[]],[[]],[[["basic",3]],["bool",15]],[[],["basic",3]],[[["basic",3]],["option",4,[["ordering",4]]]],[[]],[[],["string",3]],[[],["result",4]],[[],["result",4]],[[],["result",4,[["headervalue",3]]]],[[],["typeid",3]],[[]],[[],["basic",3]],null,null,null,null,null,null,[[]],[[]],[[]],[[]],[[],["bearerbuilder",3]],[[],["bearer",3]],[[]],[[["bearer",3]],["ordering",4]],[[],["bearerbuilder",3]],[[],["bearer",3]],[[["bearer",3]],["bool",15]],[[],["bool",15]],[[["error",4]]],[[]],[[]],[[],["bearer",3]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",4,[["error",3]]]],[[]],[[]],[[],["u64",15]],[[]],[[]],[[]],[[["bearer",3]],["bool",15]],[[["bearer",3]],["option",4,[["ordering",4]]]],[[]],[[]],[[]],[[],["string",3]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4,[["headervalue",3]]]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],null,[[]],[[]],[[]],[[]],[[],["httpauthentication",3]],[[]],[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],[[],["httpauthentication",3]]],"p":[[8,"AuthExtractor"],[8,"AuthExtractorConfig"],[3,"AuthenticationError"],[3,"Config"],[3,"BasicAuth"],[4,"Error"],[3,"Config"],[3,"BearerAuth"],[4,"ParseError"],[3,"Authorization"],[3,"Basic"],[3,"Bearer"],[8,"Scheme"],[13,"MissingField"],[13,"ToStrError"],[13,"Base64DecodeError"],[13,"Utf8Error"],[3,"WwwAuthenticate"],[8,"Challenge"],[3,"Basic"],[3,"BearerBuilder"],[3,"Bearer"],[3,"HttpAuthentication"]]}\
+"actix_web_httpauth":{"doc":"HTTP authentication schemes for actix-web.","t":[0,0,0,8,8,3,16,16,16,0,0,11,11,11,11,11,11,11,11,10,11,10,11,11,11,11,11,11,11,11,11,11,11,3,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,3,4,13,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,0,0,3,13,3,3,13,13,13,4,8,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,8,3,0,0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,3,4,13,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11],"n":["extractors","headers","middleware","AuthExtractor","AuthExtractorConfig","AuthenticationError","Error","Future","Inner","basic","bearer","borrow","borrow_mut","challenge_mut","error_response","fmt","fmt","from","from","from_service_request","into","into_inner","new","status_code","status_code_mut","to_string","try_from","try_into","type_id","vzip","with_error","with_error_description","with_error_uri","BasicAuth","Config","as_ref","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","default","fmt","fmt","from","from","from_request","from_service_request","into","into","into_inner","password","realm","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","user_id","vzip","vzip","BearerAuth","Config","Error","InsufficientScope","InvalidRequest","InvalidToken","as_ref","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","default","eq","equivalent","fmt","fmt","fmt","fmt","from","from","from","from_request","from_service_request","get_hash","hash","into","into","into","into_inner","partial_cmp","realm","scope","status_code","to_owned","to_owned","to_owned","to_string","token","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","authorization","www_authenticate","Authorization","Base64DecodeError","Basic","Bearer","Invalid","MissingField","MissingScheme","ParseError","Scheme","ToStrError","Utf8Error","as_mut","as_ref","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","cmp","cmp","default","eq","eq","eq","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","get_hash","hash","into","into","into","into","into_scheme","name","ne","ne","ne","new","new","parse","parse","parse","parse","partial_cmp","partial_cmp","partial_cmp","password","source","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","token","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into_pair","try_into_value","try_into_value","try_into_value","type_id","type_id","type_id","type_id","user_id","vzip","vzip","vzip","vzip","0","0","0","0","0","Challenge","WwwAuthenticate","basic","bearer","borrow","borrow_mut","clone","clone_into","cmp","default","eq","equivalent","fmt","from","get_hash","hash","into","name","ne","parse","partial_cmp","to_bytes","to_owned","try_from","try_into","try_into_pair","try_into_value","type_id","vzip","Basic","borrow","borrow_mut","clone","clone_into","cmp","default","eq","equivalent","fmt","fmt","from","get_hash","hash","into","ne","new","partial_cmp","to_owned","to_string","try_from","try_into","try_into_value","type_id","vzip","with_realm","Bearer","BearerBuilder","Error","InsufficientScope","InvalidRequest","InvalidToken","borrow","borrow","borrow_mut","borrow_mut","build","clone","clone_into","cmp","default","default","eq","equivalent","error","error_description","error_uri","finish","fmt","fmt","fmt","from","from","get_hash","hash","into","into","ne","partial_cmp","realm","scope","to_owned","to_string","try_from","try_from","try_into","try_into","try_into_value","type_id","type_id","vzip","vzip","HttpAuthentication","basic","bearer","borrow","borrow_mut","clone","clone_into","fmt","from","into","new_transform","to_owned","try_from","try_into","type_id","vzip","with_fn"],"q":["actix_web_httpauth","","","actix_web_httpauth::extractors","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::extractors::basic","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::extractors::bearer","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers","","actix_web_httpauth::headers::authorization","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers::authorization::ParseError","","","","actix_web_httpauth::headers::www_authenticate","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers::www_authenticate::basic","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers::www_authenticate::bearer","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::middleware","","","","","","","","","","","","","","","",""],"d":["Type-safe authentication information extractors","Typed HTTP headers","HTTP Authentication middleware.","Trait implemented by types that can extract HTTP …","Trait implemented for types that provides configuration …","Authentication error returned by authentication extractors.","The associated error which can be returned.","Future that resolves into extracted credentials type.","Associated challenge type.","Extractor for the “Basic” HTTP Authentication Scheme","Extractor for the “Bearer” HTTP Authentication Scheme","","","Returns mutable reference to the inner challenge instance.","","","","","","Parse the authentication credentials from the actix’ …","","Convert the config instance into a HTTP challenge.","Creates new authentication error from the provided …","","Returns mutable reference to the inner status code.","","","","","","Attach Error
to the current Authentication error.","Attach error description to the current Authentication …","Attach error URI to the current Authentication error.","Extractor for HTTP Basic auth.","BasicAuth
extractor configuration, used for …","","","","","","","","","","","","","","","","","","","","Returns client’s password.","Set challenge realm
attribute.","","","","","","","","","Returns client’s user-ID.","","","Extractor for HTTP Bearer auth","BearerAuth extractor configuration.","Bearer authorization error types, described in RFC 6750","The request requires higher privileges than provided by …","The request is missing a required parameter, includes an …","The access token provided is expired, revoked, malformed, …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Set challenge realm
attribute.","Set challenge scope
attribute.","Returns HTTP status code suitable for current error type.","","","","","Returns bearer token provided by client.","","","","","","","","","","","","","Authorization
header and various auth schemes","WWW-Authenticate
header and various auth challenges","Authorization
header, defined in RFC 7235","Malformed base64 string","Credentials for Basic
authentication scheme, defined in …","Credentials for Bearer
authentication scheme, defined in …","Header value is malformed","Required authentication field is missing","Authentication scheme is missing","Possible errors while parsing Authorization
header.","Authentication scheme for Authorization
header.","Unable to convert header into the str","Malformed UTF-8 string","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Consumes Authorization
header and returns inner Scheme
…","","","","","Creates Basic
credentials with provided user_id
and …","Creates new Bearer
credentials with the token provided.","Try to parse the authentication scheme from the …","","","","","","","Returns client’s password if provided.","","","","","","","","","Gets reference to the credentials token.","","","","","","","","","","","","","","","","","Returns client’s user-ID.","","","","","","","","","","Authentication challenge for WWW-Authenticate
header.","WWW-Authenticate
header, described in RFC 7235","Challenge for the “Basic” HTTP Authentication Scheme","Challenge for the “Bearer” HTTP Authentication Scheme","","","","","","","","","","","","","","","","","","Converts the challenge into a bytes suitable for HTTP …","","","","","","","","Challenge for WWW-Authenticate
header with HTTP Basic auth …","","","","","","","","","","","","","","","","Creates new Basic
challenge with an empty realm
field.","","","","","","","","","Creates new Basic
challenge from the provided realm
field …","Challenge for WWW-Authenticate
header with HTTP Bearer …","Builder for the Bearer
challenge.","Bearer authorization error types, described in RFC 6750","The request requires higher privileges than provided by …","The request is missing a required parameter, includes an …","The access token provided is expired, revoked, malformed, …","","","","","Creates the builder for Bearer
challenge.","","","","","","","","Provides the error
attribute, as defined in RFC6750, …","Provides the error_description
attribute, as defined in …","Provides the error_uri
attribute, as defined in RFC6750, …","Consumes the builder and returns built Bearer
instance.","","","","","","","","","","","","Provides the realm
attribute, as defined in RFC2617","Provides the scope
attribute, as defined in RFC6749, …","","","","","","","","","","","","Middleware for checking HTTP authentication.","Construct HttpAuthentication
middleware for the HTTP “…","Construct HttpAuthentication
middleware for the HTTP “…","","","","","","","","","","","","","","Construct HttpAuthentication
middleware with the provided …"],"i":[0,0,0,0,0,0,1,1,2,0,0,3,3,3,3,3,3,3,3,1,3,2,3,3,3,3,3,3,3,3,3,3,3,0,0,4,4,5,4,5,4,5,4,5,4,4,5,4,5,5,5,4,5,4,5,4,4,5,4,5,4,5,4,5,5,4,5,0,0,0,6,6,6,7,7,8,6,7,8,6,7,8,6,7,8,6,6,7,6,6,7,8,6,6,7,8,6,8,8,6,6,7,8,6,7,6,7,7,6,7,8,6,6,8,7,8,6,7,8,6,7,8,6,7,8,6,0,0,0,9,0,0,9,9,9,0,0,9,9,10,10,9,10,11,12,9,10,11,12,10,11,12,10,11,12,10,11,12,10,10,11,12,10,11,12,9,9,10,10,11,11,12,12,9,9,9,9,10,10,10,11,12,10,10,9,10,11,12,10,10,10,11,12,11,12,13,10,11,12,10,11,12,11,9,10,11,12,9,10,11,12,12,9,10,11,12,9,10,11,12,10,10,11,12,9,10,11,12,11,9,10,11,12,14,15,16,17,18,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,19,18,18,18,18,18,18,18,0,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,0,0,0,6,6,6,21,22,21,22,22,22,22,22,21,22,22,22,21,21,21,21,21,22,22,21,22,22,22,21,22,22,22,21,21,22,22,21,22,21,22,22,21,22,21,22,0,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23],"f":[null,null,null,null,null,null,null,null,null,null,null,[[]],[[]],[[]],[[],["httpresponse",3]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[["servicerequest",3]]],[[]],[[]],[[],["authenticationerror",3]],[[],["statuscode",3]],[[],["statuscode",3]],[[],["string",3]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],[[["error",4]]],[[]],[[]],null,null,[[],["challenge",3]],[[]],[[]],[[]],[[]],[[],["config",3]],[[],["basicauth",3]],[[]],[[]],[[],["config",3]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[["httprequest",3],["payload",4]]],[[["servicerequest",3]]],[[]],[[]],[[]],[[],["option",4,[["cow",4]]]],[[],["config",3]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[],["cow",4]],[[]],[[]],null,null,null,null,null,null,[[],["bearer",3]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["config",3]],[[],["bearerauth",3]],[[],["error",4]],[[]],[[]],[[]],[[["error",4]],["ordering",4]],[[],["config",3]],[[["error",4]],["bool",15]],[[],["bool",15]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[["httprequest",3],["payload",4]]],[[["servicerequest",3]]],[[],["u64",15]],[[]],[[]],[[]],[[]],[[]],[[["error",4]],["option",4,[["ordering",4]]]],[[["into",8,[["cow",4,[["str",15]]]]]],["config",3]],[[["into",8,[["cow",4,[["str",15]]]]]],["config",3]],[[],["statuscode",3]],[[]],[[]],[[]],[[],["string",3]],[[],["str",15]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],[[]],null,null,null,null,null,null,null,null,null,null,null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["authorization",3]],[[],["basic",3]],[[],["bearer",3]],[[]],[[]],[[]],[[["authorization",3]],["ordering",4]],[[["basic",3]],["ordering",4]],[[["bearer",3]],["ordering",4]],[[],["authorization",3]],[[["authorization",3]],["bool",15]],[[["basic",3]],["bool",15]],[[["bearer",3]],["bool",15]],[[],["bool",15]],[[],["bool",15]],[[],["bool",15]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["decodeerror",4]]],[[]],[[["tostrerror",3]]],[[["utf8error",3]]],[[]],[[["never",15]]],[[],["authorization",3]],[[]],[[]],[[],["u64",15]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["headername",3]],[[["authorization",3]],["bool",15]],[[["basic",3]],["bool",15]],[[["bearer",3]],["bool",15]],[[["option",4]],["basic",3]],[[],["bearer",3]],[[["headervalue",3]],["result",4,[["parseerror",4]]]],[[],["result",4,[["parseerror",4]]]],[[["headervalue",3]],["result",4,[["parseerror",4]]]],[[["headervalue",3]],["result",4,[["parseerror",4]]]],[[["authorization",3]],["option",4,[["ordering",4]]]],[[["basic",3]],["option",4,[["ordering",4]]]],[[["bearer",3]],["option",4,[["ordering",4]]]],[[],["option",4,[["cow",4]]]],[[],["option",4,[["error",8]]]],[[]],[[]],[[]],[[],["string",3]],[[],["string",3]],[[],["string",3]],[[],["string",3]],[[],["cow",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4,[["headervalue",3]]]],[[],["result",4,[["headervalue",3]]]],[[],["result",4,[["headervalue",3]]]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["cow",4]],[[]],[[]],[[]],[[]],null,null,null,null,null,null,null,null,null,[[]],[[]],[[],["wwwauthenticate",3]],[[]],[[["wwwauthenticate",3]],["ordering",4]],[[],["wwwauthenticate",3]],[[["wwwauthenticate",3]],["bool",15]],[[],["bool",15]],[[["formatter",3]],["result",6]],[[]],[[],["u64",15]],[[]],[[]],[[],["headername",3]],[[["wwwauthenticate",3]],["bool",15]],[[],["result",4,[["parseerror",4]]]],[[["wwwauthenticate",3]],["option",4,[["ordering",4]]]],[[],["bytes",3]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4,[["headervalue",3]]]],[[],["typeid",3]],[[]],null,[[]],[[]],[[],["basic",3]],[[]],[[["basic",3]],["ordering",4]],[[],["basic",3]],[[["basic",3]],["bool",15]],[[],["bool",15]],[[["formatter",3]],["result",4,[["error",3]]]],[[["formatter",3]],["result",6]],[[]],[[],["u64",15]],[[]],[[]],[[["basic",3]],["bool",15]],[[],["basic",3]],[[["basic",3]],["option",4,[["ordering",4]]]],[[]],[[],["string",3]],[[],["result",4]],[[],["result",4]],[[],["result",4,[["headervalue",3]]]],[[],["typeid",3]],[[]],[[],["basic",3]],null,null,null,null,null,null,[[]],[[]],[[]],[[]],[[],["bearerbuilder",3]],[[],["bearer",3]],[[]],[[["bearer",3]],["ordering",4]],[[],["bearerbuilder",3]],[[],["bearer",3]],[[["bearer",3]],["bool",15]],[[],["bool",15]],[[["error",4]]],[[]],[[]],[[],["bearer",3]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",4,[["error",3]]]],[[]],[[]],[[],["u64",15]],[[]],[[]],[[]],[[["bearer",3]],["bool",15]],[[["bearer",3]],["option",4,[["ordering",4]]]],[[]],[[]],[[]],[[],["string",3]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4,[["headervalue",3]]]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],null,[[]],[[]],[[]],[[]],[[],["httpauthentication",3]],[[]],[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],[[],["httpauthentication",3]]],"p":[[8,"AuthExtractor"],[8,"AuthExtractorConfig"],[3,"AuthenticationError"],[3,"Config"],[3,"BasicAuth"],[4,"Error"],[3,"Config"],[3,"BearerAuth"],[4,"ParseError"],[3,"Authorization"],[3,"Basic"],[3,"Bearer"],[8,"Scheme"],[13,"MissingField"],[13,"ToStrError"],[13,"Base64DecodeError"],[13,"Utf8Error"],[3,"WwwAuthenticate"],[8,"Challenge"],[3,"Basic"],[3,"BearerBuilder"],[3,"Bearer"],[3,"HttpAuthentication"]]}\
}');
if (window.initSearch) {window.initSearch(searchIndex)};
\ No newline at end of file
diff --git a/settings.html b/settings.html
index f86a7775b..9d43fab35 100644
--- a/settings.html
+++ b/settings.html
@@ -1,4 +1,5 @@
1 ++ -1 2 3 4 @@ -642,10 +643,7 @@ 641 642 643 -644 -use std::{ - collections::HashSet, convert::TryInto, error::Error as StdError, iter::FromIterator, rc::Rc, -}; +
use std::{collections::HashSet, convert::TryInto, iter::FromIterator, rc::Rc}; use actix_utils::future::{self, Ready}; use actix_web::{ @@ -1135,8 +1133,9 @@ where S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error>, S::Future: 'static, + B: MessageBody + 'static, - B::Error: StdError, + B::Error: Into<Error>, { type Response = ServiceResponse<EitherBody<B>>; type Error = Error; @@ -1281,12 +1280,12 @@ #[actix_rt::test] async fn middleware_generic_over_body_type() { let srv = fn_service(|req: ServiceRequest| async move { - Ok(req.into_response(HttpResponse::Ok().message_body(body::None::new())?)) + Ok(req.into_response(HttpResponse::with_body(StatusCode::OK, body::None::new()))) }); Cors::default().new_transform(srv).await.unwrap(); } }
1 ++
1 ++ -1 2 3 4 @@ -232,18 +233,17 @@ 231 232 233 -use std::{collections::HashSet, convert::TryInto, error::Error as StdError, rc::Rc}; +
use std::{collections::HashSet, convert::TryInto, rc::Rc}; use actix_utils::future::ok; use actix_web::{ body::{EitherBody, MessageBody}, dev::{Service, ServiceRequest, ServiceResponse}, - error::{Error, Result}, http::{ header::{self, HeaderValue}, Method, }, - HttpResponse, + Error, HttpResponse, Result, }; use futures_util::future::{FutureExt as _, LocalBoxFuture}; use log::debug; @@ -372,8 +372,9 @@ where S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error>, S::Future: 'static, + B: MessageBody + 'static, - B::Error: StdError, + B::Error: Into<Error>, { type Response = ServiceResponse<EitherBody<B>>; type Error = Error; @@ -406,7 +407,7 @@ if origin.is_some() { Ok(Self::augment_response(&inner, res?)) } else { - res + res.map_err(Into::into) } .map(|res| res.map_into_left_body()) } @@ -466,5 +467,5 @@ } }
1 ++ -1 2 3 4 @@ -172,7 +173,7 @@ 171 172 173 -use std::{error::Error as StdError, rc::Rc}; +
use std::rc::Rc; use actix_utils::future::{ready, Ready}; use actix_web::{ @@ -218,7 +219,7 @@ S::Future: 'static, T: IdentityPolicy, B: MessageBody + 'static, - B::Error: StdError, + B::Error: Into<Error>, { type Response = ServiceResponse<EitherBody<B>>; type Error = Error; @@ -254,7 +255,7 @@ S::Future: 'static, T: IdentityPolicy, B: MessageBody + 'static, - B::Error: StdError, + B::Error: Into<Error>, { type Response = ServiceResponse<EitherBody<B>>; type Error = Error; @@ -346,5 +347,5 @@ } }
1 ++
1 ++ -1 2 3 4 @@ -565,7 +566,7 @@ 564//! Cookie based sessions. See docs for [`CookieSession`]. -use std::{collections::HashMap, error::Error as StdError, rc::Rc}; +use std::{collections::HashMap, rc::Rc}; use actix_utils::future::{ok, Ready}; use actix_web::{ @@ -866,7 +867,7 @@ S::Future: 'static, S::Error: 'static, B: MessageBody + 'static, - B::Error: StdError, + B::Error: Into<Error>, { type Response = ServiceResponse<EitherBody<B>>; type Error = S::Error; @@ -894,7 +895,7 @@ S::Future: 'static, S::Error: 'static, B: MessageBody + 'static, - B::Error: StdError, + B::Error: Into<Error>, { type Response = ServiceResponse<EitherBody<B>>; type Error = S::Error; @@ -1081,7 +1082,7 @@ let request = test::TestRequest::with_uri("/test/") .cookie(cookie) .to_request(); - let body = test::read_response(&app, request).await; + let body = test::call_and_read_body(&app, request).await; assert_eq!(body, Bytes::from_static(b"counter: 100")); } @@ -1128,5 +1129,5 @@ } }
1 ++ -1 2 3 4 @@ -103,7 +104,7 @@use std::fmt; use actix_web::error::ParseError; -use actix_web::http::header::{Header, HeaderName, HeaderValue, IntoHeaderValue, AUTHORIZATION}; +use actix_web::http::header::{Header, HeaderName, HeaderValue, TryIntoHeaderValue, AUTHORIZATION}; use actix_web::HttpMessage; use crate::headers::authorization::scheme::Scheme; @@ -188,8 +189,8 @@ } } -impl<S: Scheme> IntoHeaderValue for Authorization<S> { - type Error = <S as IntoHeaderValue>::Error; +impl<S: Scheme> TryIntoHeaderValue for Authorization<S> { + type Error = <S as TryIntoHeaderValue>::Error; fn try_into_value(self) -> Result<HeaderValue, Self::Error> { self.0.try_into_value() @@ -202,5 +203,5 @@ } }
1 ++
1 ++ -1 2 3 4 @@ -194,17 +195,14 @@ 193 194 195 -196 -197 -use std::borrow::Cow; -use std::fmt; -use std::str; +
use std::{borrow::Cow, fmt, str}; -use actix_web::http::header::{HeaderValue, IntoHeaderValue, InvalidHeaderValue}; -use actix_web::web::{BufMut, BytesMut}; +use actix_web::{ + http::header::{HeaderValue, InvalidHeaderValue, TryIntoHeaderValue}, + web::{BufMut, BytesMut}, +}; -use crate::headers::authorization::errors::ParseError; -use crate::headers::authorization::Scheme; +use crate::headers::authorization::{errors::ParseError, Scheme}; /// Credentials for `Basic` authentication scheme, defined in [RFC 7617](https://tools.ietf.org/html/rfc7617) #[derive(Clone, Eq, Ord, PartialEq, PartialOrd)] @@ -292,10 +290,10 @@ } } -impl IntoHeaderValue for Basic { +impl TryIntoHeaderValue for Basic { type Error = InvalidHeaderValue; - fn try_into_value(self) -> Result<HeaderValue, <Self as IntoHeaderValue>::Error> { + fn try_into_value(self) -> Result<HeaderValue, Self::Error> { let mut credentials = BytesMut::with_capacity( self.user_id.len() + 1 // ':' @@ -321,8 +319,7 @@ #[cfg(test)] mod tests { - use super::{Basic, Scheme}; - use actix_web::http::header::{HeaderValue, IntoHeaderValue}; + use super::*; #[test] fn test_parse_header() { @@ -394,5 +391,5 @@ } }
1 ++ -1 2 3 4 @@ -136,11 +137,10 @@ 135 136 137 -138use std::borrow::Cow; use std::fmt; -use actix_web::http::header::{HeaderValue, IntoHeaderValue, InvalidHeaderValue}; +use actix_web::http::header::{HeaderValue, InvalidHeaderValue, TryIntoHeaderValue}; use actix_web::web::{BufMut, BytesMut}; use crate::headers::authorization::errors::ParseError; @@ -212,10 +212,10 @@ } } -impl IntoHeaderValue for Bearer { +impl TryIntoHeaderValue for Bearer { type Error = InvalidHeaderValue; - fn try_into_value(self) -> Result<HeaderValue, <Self as IntoHeaderValue>::Error> { + fn try_into_value(self) -> Result<HeaderValue, Self::Error> { let mut buffer = BytesMut::with_capacity(7 + self.token.len()); buffer.put(&b"Bearer "[..]); buffer.extend_from_slice(self.token.as_bytes()); @@ -226,8 +226,7 @@ #[cfg(test)] mod tests { - use super::{Bearer, Scheme}; - use actix_web::http::header::{HeaderValue, IntoHeaderValue}; + use super::*; #[test] fn test_parse_header() { @@ -276,5 +275,5 @@ } }
1 ++ -1 2 3 4 @@ -16,7 +17,7 @@ 15use std::fmt::{Debug, Display}; -use actix_web::http::header::{HeaderValue, IntoHeaderValue}; +use actix_web::http::header::{HeaderValue, TryIntoHeaderValue}; pub mod basic; pub mod bearer; @@ -25,10 +26,10 @@ /// Authentication scheme for [`Authorization`](./struct.Authorization.html) /// header. -pub trait Scheme: IntoHeaderValue + Debug + Display + Clone + Send + Sync { +pub trait Scheme: TryIntoHeaderValue + Debug + Display + Clone + Send + Sync { /// Try to parse the authentication scheme from the `Authorization` header. fn parse(header: &HeaderValue) -> Result<Self, ParseError>; }
1 ++ -1 2 3 4 @@ -138,7 +139,6 @@ 137 138 139 -140//! Challenge for the "Basic" HTTP Authentication Scheme use std::borrow::Cow; @@ -146,7 +146,7 @@ use std::fmt; use std::str; -use actix_web::http::header::{HeaderValue, IntoHeaderValue, InvalidHeaderValue}; +use actix_web::http::header::{HeaderValue, InvalidHeaderValue, TryIntoHeaderValue}; use actix_web::web::{BufMut, Bytes, BytesMut}; use super::Challenge; @@ -244,18 +244,17 @@ } } -impl IntoHeaderValue for Basic { +impl TryIntoHeaderValue for Basic { type Error = InvalidHeaderValue; - fn try_into_value(self) -> Result<HeaderValue, <Self as IntoHeaderValue>::Error> { + fn try_into_value(self) -> Result<HeaderValue, Self::Error> { HeaderValue::from_maybe_shared(self.to_bytes()) } } #[cfg(test)] mod tests { - use super::Basic; - use actix_web::http::header::IntoHeaderValue; + use super::*; #[test] fn test_plain_into_header_value() { @@ -280,5 +279,5 @@ } }
1 ++ -1 2 3 4 @@ -142,7 +143,7 @@ use std::fmt; use std::str; -use actix_web::http::header::{HeaderValue, IntoHeaderValue, InvalidHeaderValue}; +use actix_web::http::header::{HeaderValue, InvalidHeaderValue, TryIntoHeaderValue}; use actix_web::web::{BufMut, Bytes, BytesMut}; use super::super::Challenge; @@ -270,13 +271,13 @@ } } -impl IntoHeaderValue for Bearer { +impl TryIntoHeaderValue for Bearer { type Error = InvalidHeaderValue; - fn try_into_value(self) -> Result<HeaderValue, <Self as IntoHeaderValue>::Error> { + fn try_into_value(self) -> Result<HeaderValue, Self::Error> { HeaderValue::from_maybe_shared(self.to_bytes()) } }
1 ++ -1 2 3 4 @@ -11,20 +12,18 @@ 10 11 12 -13use std::fmt::{Debug, Display}; -use actix_web::http::header::IntoHeaderValue; -use actix_web::web::Bytes; +use actix_web::{http::header::TryIntoHeaderValue, web::Bytes}; pub mod basic; pub mod bearer; /// Authentication challenge for `WWW-Authenticate` header. -pub trait Challenge: IntoHeaderValue + Debug + Display + Clone + Send + Sync { +pub trait Challenge: TryIntoHeaderValue + Debug + Display + Clone + Send + Sync { /// Converts the challenge into a bytes suitable for HTTP transmission. fn to_bytes(&self) -> Bytes; }
1 ++ -1 2 3 4 @@ -30,9 +31,13 @@ 29 30 31 -use actix_web::error::ParseError; -use actix_web::http::header::{Header, HeaderName, HeaderValue, IntoHeaderValue, WWW_AUTHENTICATE}; -use actix_web::HttpMessage; +32 +33 +
use actix_web::{ + error::ParseError, + http::header::{Header, HeaderName, HeaderValue, TryIntoHeaderValue, WWW_AUTHENTICATE}, + HttpMessage, +}; use super::Challenge; @@ -54,13 +59,13 @@ } } -impl<C: Challenge> IntoHeaderValue for WwwAuthenticate<C> { - type Error = <C as IntoHeaderValue>::Error; +impl<C: Challenge> TryIntoHeaderValue for WwwAuthenticate<C> { + type Error = <C as TryIntoHeaderValue>::Error; - fn try_into_value(self) -> Result<HeaderValue, <Self as IntoHeaderValue>::Error> { + fn try_into_value(self) -> Result<HeaderValue, Self::Error> { self.0.try_into_value() } }
1 ++
1 ++ -1 2 3 4 @@ -358,11 +359,9 @@ 357 358 359 -360//! HTTP Authentication middleware. use std::{ - error::Error as StdError, future::Future, marker::PhantomData, pin::Pin, @@ -486,7 +485,7 @@ O: Future<Output = Result<ServiceRequest, Error>> + 'static, T: AuthExtractor + 'static, B: MessageBody + 'static, - B::Error: StdError, + B::Error: Into<Error>, { type Response = ServiceResponse<EitherBody<B>>; type Error = Error; @@ -521,7 +520,7 @@ O: Future<Output = Result<ServiceRequest, Error>> + 'static, T: AuthExtractor + 'static, B: MessageBody + 'static, - B::Error: StdError, + B::Error: Into<Error>, { type Response = ServiceResponse<EitherBody<B>>; type Error = S::Error; @@ -720,5 +719,5 @@ } }