RestClient.Builder |
RestClient.newBuilder() |
Create a new builder for a new Rest Client with the same configurations on this one.
|
RestClient.Builder |
RestClient.Builder.useHttpClientThreadPool(boolean useHttpClientThreadPool) |
Sets whether to use the thread pool in OkHttp client or RxJava schedulers.
|
RestClient.Builder |
RestClient.Builder.withBaseUrl(Environment environment,
Environment.Endpoint endpoint) |
Sets the base URL with the default from the Environment.
|
RestClient.Builder |
RestClient.Builder.withBaseUrl(String baseUrl) |
Sets the dynamic base URL.
|
RestClient.Builder |
RestClient.Builder.withCallbackExecutor(Executor executor) |
Sets the executor for async callbacks to run on.
|
RestClient.Builder |
RestClient.Builder.withConnectionPool(okhttp3.ConnectionPool connectionPool) |
Sets the connection pool for the Http client.
|
RestClient.Builder |
RestClient.Builder.withConnectionTimeout(long timeout,
TimeUnit unit) |
Set the connection timeout on the HTTP client.
|
RestClient.Builder |
RestClient.Builder.withCredentials(ServiceClientCredentials credentials) |
Sets the credentials.
|
RestClient.Builder |
RestClient.Builder.withDispatcher(okhttp3.Dispatcher dispatcher) |
Sets the dispatcher used in OkHttp client.
|
RestClient.Builder |
RestClient.Builder.withInterceptor(okhttp3.Interceptor interceptor) |
Add an interceptor the Http client pipeline.
|
RestClient.Builder |
RestClient.Builder.withLogLevel(LogLevel logLevel) |
Sets the HTTP log level.
|
RestClient.Builder |
RestClient.Builder.withMaxIdleConnections(int maxIdleConnections) |
Deprecated.
|
RestClient.Builder |
RestClient.Builder.withNetworkInterceptor(okhttp3.Interceptor networkInterceptor) |
Add an interceptor the network layer of Http client pipeline.
|
RestClient.Builder |
RestClient.Builder.withProxy(Proxy proxy) |
Sets the proxy for the HTTP client.
|
RestClient.Builder |
RestClient.Builder.withProxyAuthenticator(okhttp3.Authenticator proxyAuthenticator) |
Sets the proxy authenticator for the HTTP client.
|
RestClient.Builder |
RestClient.Builder.withReadTimeout(long timeout,
TimeUnit unit) |
Set the read timeout on the HTTP client.
|
RestClient.Builder |
RestClient.Builder.withResponseBuilderFactory(ResponseBuilder.Factory responseBuilderFactory) |
Sets the response builder factory.
|
RestClient.Builder |
RestClient.Builder.withRetryStrategy(RetryStrategy strategy) |
Adds a retry strategy to the client.
|
RestClient.Builder |
RestClient.Builder.withSerializerAdapter(SerializerAdapter<?> serializerAdapter) |
Sets the serialization adapter.
|
RestClient.Builder |
RestClient.Builder.withUserAgent(String userAgent) |
Sets the user agent header.
|