Remove settings suffix from http client properties
Remove `spring.http.client` deprecation and change `spring.http.reactiveclient.settings` to `spring.http.reactiveclient`. Closes gh-45507
This commit is contained in:
@@ -55,7 +55,7 @@ You can learn more about the {url-spring-framework-docs}/web/webflux-webclient/c
|
||||
[[io.rest-client.webclient.configuration]]
|
||||
=== Global HTTP Connector Configuration
|
||||
|
||||
If the auto-detected javadoc:org.springframework.http.client.reactive.ClientHttpConnector[] does not meet your needs, you can use the configprop:spring.http.reactiveclient.settings.connector[] property to pick a specific connector.
|
||||
If the auto-detected javadoc:org.springframework.http.client.reactive.ClientHttpConnector[] does not meet your needs, you can use the configprop:spring.http.reactiveclient.connector[] property to pick a specific connector.
|
||||
For example, if you have Reactor Netty on your classpath, but you prefer Jetty's javadoc:org.eclipse.jetty.client.HttpClient[] you can add the following:
|
||||
|
||||
[configprops,yaml]
|
||||
@@ -63,8 +63,7 @@ For example, if you have Reactor Netty on your classpath, but you prefer Jetty's
|
||||
spring:
|
||||
http:
|
||||
reactiveclient:
|
||||
settings:
|
||||
connector: jetty
|
||||
connector: jetty
|
||||
----
|
||||
|
||||
You can also set properties to change defaults that will be applied to all reactive connectors.
|
||||
@@ -75,10 +74,9 @@ For example, you may want to change timeouts and if redirects are followed:
|
||||
spring:
|
||||
http:
|
||||
reactiveclient:
|
||||
settings:
|
||||
connect-timeout: 2s
|
||||
read-timeout: 1s
|
||||
redirects: dont-follow
|
||||
connect-timeout: 2s
|
||||
read-timeout: 1s
|
||||
redirects: dont-follow
|
||||
----
|
||||
|
||||
For more complex customizations, you can use javadoc:org.springframework.boot.autoconfigure.http.client.reactive.ClientHttpConnectorBuilderCustomizer[] or declare your own javadoc:org.springframework.boot.http.client.reactive.ClientHttpConnectorBuilder[] bean which will cause auto-configuration to back off.
|
||||
@@ -248,7 +246,7 @@ If multiple clients are available on the classpath, and not global configuration
|
||||
[[io.rest-client.clienthttprequestfactory.configuration]]
|
||||
=== Global HTTP Client Configuration
|
||||
|
||||
If the auto-detected HTTP client does not meet your needs, you can use the configprop:spring.http.client.settings.factory[] property to pick a specific factory.
|
||||
If the auto-detected HTTP client does not meet your needs, you can use the configprop:spring.http.client.factory[] property to pick a specific factory.
|
||||
For example, if you have Apache HttpClient on your classpath, but you prefer Jetty's javadoc:org.eclipse.jetty.client.HttpClient[] you can add the following:
|
||||
|
||||
[configprops,yaml]
|
||||
@@ -256,8 +254,7 @@ For example, if you have Apache HttpClient on your classpath, but you prefer Jet
|
||||
spring:
|
||||
http:
|
||||
client:
|
||||
settings:
|
||||
factory: jetty
|
||||
factory: jetty
|
||||
----
|
||||
|
||||
You can also set properties to change defaults that will be applied to all clients.
|
||||
@@ -268,10 +265,9 @@ For example, you may want to change timeouts and if redirects are followed:
|
||||
spring:
|
||||
http:
|
||||
client:
|
||||
settings:
|
||||
connect-timeout: 2s
|
||||
read-timeout: 1s
|
||||
redirects: dont-follow
|
||||
connect-timeout: 2s
|
||||
read-timeout: 1s
|
||||
redirects: dont-follow
|
||||
----
|
||||
|
||||
For more complex customizations, you can use javadoc:org.springframework.boot.autoconfigure.http.client.ClientHttpRequestFactoryBuilderCustomizer[] or declare your own javadoc:org.springframework.boot.http.client.ClientHttpRequestFactoryBuilder[] bean which will cause auto-configuration to back off.
|
||||
|
||||
Reference in New Issue
Block a user