Struct tower_http::auth::require_authorization::Basic
source · pub struct Basic<ResBody> { /* private fields */ }
Available on crate feature
auth
only.Expand description
Type that performs basic authorization.
See RequireAuthorization::basic
for more details.
Trait Implementations§
source§impl<B, ResBody> AuthorizeRequest<B> for Basic<ResBody>where
ResBody: Body + Default,
impl<B, ResBody> AuthorizeRequest<B> for Basic<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