public class HttpClient
extends java.lang.Object
An HTTP client that can execute ApiRequests.
Users of this library should not need to access this class directly.
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_RETRIES
The maximum number of times that a request can be retried.
|
| Constructor and Description |
|---|
HttpClient(java.lang.String accessToken,
java.lang.String baseUrl,
com.squareup.okhttp.OkHttpClient rawClient)
Constructor.
|
public static final int MAX_RETRIES
The maximum number of times that a request can be retried.
public HttpClient(java.lang.String accessToken,
java.lang.String baseUrl,
com.squareup.okhttp.OkHttpClient rawClient)
Constructor. Users of this library should not need to access this class directly - you should instantiate a GoCardlessClient and its underlying HttpClient using GoCardlessClient.newBuilder().
accessToken - the access token.baseUrl - base URI to make requests against.rawClient - the OkHttpClient instance to use to make requests (which will be configured to log requests with LoggingInterceptor).