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.
|
protected okhttp3.Dispatcher |
initDispatcher() |
io.fabric8.kubernetes.client.okhttp.OkHttpClientBuilderImpl |
newBuilder() |
io.fabric8.kubernetes.client.okhttp.OkHttpClientBuilderImpl |
newBuilder(Config config)
Creates an HTTP client builder configured to access the Kubernetes API.
|
protected okhttp3.OkHttpClient.Builder |
newOkHttpClientBuilder()
Subclasses may use this to apply a base configuration to the builder
|
int |
priority() |
protected boolean |
shouldDisableHttp2()
OkHttp wrongfully detects > JDK8u251 as okhttp3.internal.platform.Jdk9Platform which enables Http2
unsupported for JDK8.
|
public int priority()
priority in interface HttpClient.Factoryprotected okhttp3.OkHttpClient.Builder newOkHttpClientBuilder()
protected void additionalConfig(okhttp3.OkHttpClient.Builder builder)
builder - public io.fabric8.kubernetes.client.okhttp.OkHttpClientBuilderImpl newBuilder()
newBuilder in interface HttpClient.Factorypublic io.fabric8.kubernetes.client.okhttp.OkHttpClientBuilderImpl newBuilder(Config config)
newBuilder in interface HttpClient.Factoryconfig - Kubernetes API client configprotected boolean shouldDisableHttp2()
protected okhttp3.Dispatcher initDispatcher()
Copyright © 2015–2023 Red Hat. All rights reserved.