Class DefaultHttpClient

java.lang.Object
com.auth0.net.client.DefaultHttpClient
All Implemented Interfaces:
Auth0HttpClient

public class DefaultHttpClient extends Object implements Auth0HttpClient
Default implementation of Auth0HttpClient responsible for performing HTTP requests to the Auth0 APIs. Instances can be configured and created using the DefaultHttpClient.Builder.

To minimize resource usage, instances should be created once and used in both the ManagementAPI and AuthAPI API clients.

For most use cases, usage of this client is recommended. If you have more advanced use cases, such as the need to re-use an existing HTTP client, you may consider providing a custom implementation of Auth0HttpClient.