pub fn request<F, RE>(self, http_client: F) -> Result<(), RequestTokenError<RE, TE>>
    where
        F: FnOnce(HttpRequest) -> Result<HttpResponse, RE>,
        RE: Error + 'static,
    {
        // From https://tools.ietf.org/html/rfc7009#section-2.2:
        //   "The content of the response body is ignored by the client as all
        //    necessary information is conveyed in the response code."
        http_client(self.prepare_request()?)
            .map_err(RequestTokenError::Request)
            .and_then(endpoint_response_status_only)
    }
///
/// Synchronously sends the request to the authorization server and awaits a response.
///
/// A successful response indicates that the server either revoked the token or the token was not known to the
/// server.
///
/// Error [`UnsupportedTokenType`](crate::revocation::RevocationErrorResponseType::UnsupportedTokenType) will be returned if the
/// type of token type given is not supported by the server.
///
Synchronously sends the request to the authorization server and awaits a response.
A successful response indicates that the server either revoked the token or the token was not known to the
server.


Synchronously sends the request to the authorization server and awaits a response . A successful response indicates that the server either revoked the token or the token was not known to the server .
pub fn request<F, RE>(self, http_client: F) -> Result<(), RequestTokenError<RE, TE>>
    where
        F: FnOnce(HttpRequest) -> Result<HttpResponse, RE>,
        RE: Error + 'static,
    {
        // From https://tools.ietf.org/html/rfc7009#section-2.2:
        //   "The content of the response body is ignored by the client as all
        //    necessary information is conveyed in the response code."
        http_client(self.prepare_request()?)
            .map_err(RequestTokenError::Request)
            .and_then(endpoint_response_status_only)
    }
pub fn request < F , RE > ( self , http_client : F ) -> Result < ( ) , RequestTokenError < RE , TE > > where F : FnOnce ( HttpRequest ) -> Result < HttpResponse , RE > , RE : Error + ' static , { // From https://tools.ietf.org/html/rfc7009#section-2.2: //   "The content of the response body is ignored by the client as all //    necessary information is conveyed in the response code." http_client ( self . prepare_request ( ) ? ) . map_err ( RequestTokenError :: Request ) . and_then ( endpoint_response_status_only ) }
Synchronously sends the request to the authorization server and awaits a response.
Synchronously sends the request to the authorization server and awaits a response .
self
http_client
F
self
http_client
F