类 JettyHttpClientBuilder
java.lang.Object
org.springframework.boot.http.client.JettyHttpClientBuilder
Builder that can be used to create a Jetty
HttpClient
.- 从以下版本开始:
- 3.5.0
- 作者:
- Phillip Webb, Andy Wilkinson, Scott Frederick
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.eclipse.jetty.client.HttpClient
build
(HttpClientSettings settings) Build a newHttpClient
instance with the given settings applied.withClientConnectorCustomizerCustomizer
(Consumer<org.eclipse.jetty.io.ClientConnector> clientConnectorCustomizerCustomizer) Return a newJettyClientHttpRequestFactoryBuilder
that applies additional customization to the underlyingClientConnector
.withCustomizer
(Consumer<org.eclipse.jetty.client.HttpClient> customizer) Return a newJettyClientHttpRequestFactoryBuilder
that applies additional customization to the underlyingHttpClient
.withHttpClientTransportCustomizer
(Consumer<org.eclipse.jetty.client.HttpClientTransport> httpClientTransportCustomizer) Return a newJettyClientHttpRequestFactoryBuilder
that applies additional customization to the underlyingHttpClientTransport
.
-
构造器详细资料
-
JettyHttpClientBuilder
public JettyHttpClientBuilder()
-
-
方法详细资料
-
withCustomizer
public JettyHttpClientBuilder withCustomizer(Consumer<org.eclipse.jetty.client.HttpClient> customizer) Return a newJettyClientHttpRequestFactoryBuilder
that applies additional customization to the underlyingHttpClient
.- 参数:
customizer
- the customizer to apply- 返回:
- a new
JettyClientHttpRequestFactoryBuilder
instance
-
withHttpClientTransportCustomizer
public JettyHttpClientBuilder withHttpClientTransportCustomizer(Consumer<org.eclipse.jetty.client.HttpClientTransport> httpClientTransportCustomizer) Return a newJettyClientHttpRequestFactoryBuilder
that applies additional customization to the underlyingHttpClientTransport
.- 参数:
httpClientTransportCustomizer
- the customizer to apply- 返回:
- a new
JettyClientHttpRequestFactoryBuilder
instance
-
withClientConnectorCustomizerCustomizer
public JettyHttpClientBuilder withClientConnectorCustomizerCustomizer(Consumer<org.eclipse.jetty.io.ClientConnector> clientConnectorCustomizerCustomizer) Return a newJettyClientHttpRequestFactoryBuilder
that applies additional customization to the underlyingClientConnector
.- 参数:
clientConnectorCustomizerCustomizer
- the customizer to apply- 返回:
- a new
JettyClientHttpRequestFactoryBuilder
instance
-
build
Build a newHttpClient
instance with the given settings applied.- 参数:
settings
- the settings to apply- 返回:
- a new
HttpClient
instance
-