Struct tower_http::auth::require_authorization::Bearer
source · [−]pub struct Bearer<ResBody> { /* private fields */ }This is supported on crate feature
auth only.Expand description
Type that performs “bearer token” authorization.
See RequireAuthorization::bearer for more details.
Trait Implementations
type ResponseBody = ResBody
type ResponseBody = ResBody
The body type used for responses to unauthorized requests.
Authorize the request. Read more
Create the response for an unauthorized request.
Callback for when a request has been successfully authorized. Read more
Auto Trait Implementations
impl<ResBody> RefUnwindSafe for Bearer<ResBody>
impl<ResBody> UnwindSafe for Bearer<ResBody>
Blanket Implementations
Mutably borrows from an owned value. Read more
This is supported on crate feature
follow-redirect only.Create a new Policy that returns Action::Follow only if self and other return
Action::Follow. 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