类 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.HttpClientbuild(HttpClientSettings settings) Build a newHttpClientinstance with the given settings applied.withClientConnectorCustomizerCustomizer(Consumer<org.eclipse.jetty.io.ClientConnector> clientConnectorCustomizerCustomizer) Return a newJettyClientHttpRequestFactoryBuilderthat applies additional customization to the underlyingClientConnector.withCustomizer(Consumer<org.eclipse.jetty.client.HttpClient> customizer) Return a newJettyClientHttpRequestFactoryBuilderthat applies additional customization to the underlyingHttpClient.withHttpClientTransportCustomizer(Consumer<org.eclipse.jetty.client.HttpClientTransport> httpClientTransportCustomizer) Return a newJettyClientHttpRequestFactoryBuilderthat applies additional customization to the underlyingHttpClientTransport.
-
构造器详细资料
-
JettyHttpClientBuilder
public JettyHttpClientBuilder()
-
-
方法详细资料
-
withCustomizer
public JettyHttpClientBuilder withCustomizer(Consumer<org.eclipse.jetty.client.HttpClient> customizer) Return a newJettyClientHttpRequestFactoryBuilderthat applies additional customization to the underlyingHttpClient.- 参数:
customizer- the customizer to apply- 返回:
- a new
JettyClientHttpRequestFactoryBuilderinstance
-
withHttpClientTransportCustomizer
public JettyHttpClientBuilder withHttpClientTransportCustomizer(Consumer<org.eclipse.jetty.client.HttpClientTransport> httpClientTransportCustomizer) Return a newJettyClientHttpRequestFactoryBuilderthat applies additional customization to the underlyingHttpClientTransport.- 参数:
httpClientTransportCustomizer- the customizer to apply- 返回:
- a new
JettyClientHttpRequestFactoryBuilderinstance
-
withClientConnectorCustomizerCustomizer
public JettyHttpClientBuilder withClientConnectorCustomizerCustomizer(Consumer<org.eclipse.jetty.io.ClientConnector> clientConnectorCustomizerCustomizer) Return a newJettyClientHttpRequestFactoryBuilderthat applies additional customization to the underlyingClientConnector.- 参数:
clientConnectorCustomizerCustomizer- the customizer to apply- 返回:
- a new
JettyClientHttpRequestFactoryBuilderinstance
-
build
Build a newHttpClientinstance with the given settings applied.- 参数:
settings- the settings to apply- 返回:
- a new
HttpClientinstance
-