public class OkHttpClientFactory extends Object implements HttpClient.Factory
| Constructor and Description |
|---|
OkHttpClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
additionalConfig(okhttp3.OkHttpClient.Builder builder)
Subclasses may use this to apply additional configuration after the Config has been applied
This method is only called for clients constructed using the Config.
|
OkHttpClientImpl |
createHttpClient(Config config)
Creates an HTTP client configured to access the Kubernetes API.
|
HttpClient.Builder |
newBuilder() |
protected okhttp3.OkHttpClient.Builder |
newOkHttpClientBuilder()
Subclasses may use this to apply a base configuration to the builder
|
protected boolean |
shouldDisableHttp2()
OkHttp wrongfully detects > JDK8u251 as okhttp3.internal.platform.Jdk9Platform which enables Http2
unsupported for JDK8.
|
protected okhttp3.OkHttpClient.Builder newOkHttpClientBuilder()
protected void additionalConfig(okhttp3.OkHttpClient.Builder builder)
builder - public HttpClient.Builder newBuilder()
newBuilder in interface HttpClient.Factorypublic OkHttpClientImpl createHttpClient(Config config)
createHttpClient in interface HttpClient.Factoryconfig - Kubernetes API client configprotected boolean shouldDisableHttp2()
Copyright © 2015–2022 Red Hat. All rights reserved.