Interface Auth0HttpClient

All Known Implementing Classes:
DefaultHttpClient

public interface Auth0HttpClient
The HttpClient interface defines how HTTP requests to the Auth0 APIs are made.
  • Method Details

    • sendRequest

      Auth0HttpResponse sendRequest(Auth0HttpRequest request) throws IOException
      Builds, executes, and returns the result of a synchronous HTTP request to an Auth0 API.
      Parameters:
      request - the request to send.
      Returns:
      the response returned by the executed request.
      Throws:
      IOException - if the request can not be completed due to a network timeout or interruption.
    • sendRequestAsync

      Builds and executes an asynchronous HTTP request to an Auth0 API.
      Parameters:
      request - the request to send.
      Returns:
      the CompletableFuture that represents the result of the asynchronous HTTP request.