@Configuration
public class HttpClientPluginConfiguration
extends java.lang.Object
| 构造器和说明 |
|---|
HttpClientPluginConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpClientFactory |
httpClient(org.apache.shenyu.plugin.httpclient.config.HttpClientProperties properties,
org.springframework.beans.factory.ObjectProvider<reactor.netty.resources.LoopResources> provider,
org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
Shenyu http client.
|
reactor.netty.resources.LoopResources |
httpClientLoopResource(org.apache.shenyu.plugin.httpclient.config.HttpClientProperties properties)
Http client loop resource.
|
org.apache.shenyu.plugin.httpclient.config.HttpClientProperties |
httpClientProperties()
Http client properties.
|
org.apache.shenyu.plugin.httpclient.config.DuplicateResponseHeaderProperties |
responseHeaderProperties()
http response duplicate response headers config.
|
@Bean @ConfigurationProperties(prefix="shenyu.httpclient") public org.apache.shenyu.plugin.httpclient.config.HttpClientProperties httpClientProperties()
@Bean @ConfigurationProperties(prefix="shenyu.duplicate-response-header") public org.apache.shenyu.plugin.httpclient.config.DuplicateResponseHeaderProperties responseHeaderProperties()
@Bean @ConditionalOnProperty(value="shenyu.httpclient.thread-pool.prefix") public reactor.netty.resources.LoopResources httpClientLoopResource(org.apache.shenyu.plugin.httpclient.config.HttpClientProperties properties)
properties - the properties@Bean
@ConditionalOnMissingBean(value={reactor.netty.http.client.HttpClient.class,HttpClientFactory.class})
public HttpClientFactory httpClient(org.apache.shenyu.plugin.httpclient.config.HttpClientProperties properties,
org.springframework.beans.factory.ObjectProvider<reactor.netty.resources.LoopResources> provider,
org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
properties - the propertiesprovider - the loop resources bean providerserverProperties - the server propertiesCopyright © 2026 The Apache Software Foundation. All rights reserved.