Struct tower_http::auth::require_authorization::Bearer
source · pub struct Bearer<ResBody> { /* private fields */ }
Available on crate feature
auth
only.Expand description
Type that performs “bearer token” authorization.
See RequireAuthorization::bearer
for more details.
Trait Implementations§
source§impl<B, ResBody> AuthorizeRequest<B> for Bearer<ResBody>where
ResBody: Body + Default,
impl<B, ResBody> AuthorizeRequest<B> for Bearer<ResBody>where
ResBody: Body + Default,
§type ResponseBody = ResBody
type ResponseBody = ResBody
The body type used for responses to unauthorized requests.
Authorize the request. Read more