Package com.auth0.net.client
Interface Auth0HttpClient
- All Known Implementing Classes:
DefaultHttpClient
public interface Auth0HttpClient
The HttpClient interface defines how HTTP requests to the Auth0 APIs are made.
-
Method Summary
Modifier and TypeMethodDescriptionsendRequest(Auth0HttpRequest request) Builds, executes, and returns the result of a synchronous HTTP request to an Auth0 API.sendRequestAsync(Auth0HttpRequest request) Builds and executes an asynchronous HTTP request to an Auth0 API.
-
Method Details
-
sendRequest
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
CompletableFuturethat represents the result of the asynchronous HTTP request.
-