Add example snippet to doc. Add author tag to javadoc.
Signed-off-by: Olga Maciaszek-Sharma <olga.maciaszek-sharma@broadcom.com>
This commit is contained in:
committed by
Olga Maciaszek-Sharma
parent
14366cc478
commit
b44c088251
@@ -116,7 +116,20 @@ eureka:
|
||||
socket-timeout: 10000
|
||||
----
|
||||
|
||||
You can also customise the `RequestConfig` for the underlying Apache HttpClient 5 by creating a bean of type `EurekaClientHttpRequestFactorySupplier.RequestConfigCustomizer`.
|
||||
You can also customise the `RequestConfig` for the underlying Apache HttpClient 5 by creating a bean of type `EurekaClientHttpRequestFactorySupplier.RequestConfigCustomizer`:
|
||||
|
||||
[source,java,indent=0]
|
||||
----
|
||||
@Configuration
|
||||
public class RestClientConfiguration {
|
||||
|
||||
@Bean
|
||||
EurekaClientHttpRequestFactorySupplier.RequestConfigCustomizer requestConfigCustomizer() {
|
||||
return builder -> builder.setProtocolUpgradeEnabled(false);
|
||||
}
|
||||
|
||||
}
|
||||
----
|
||||
|
||||
=== Status Page and Health Indicator
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@ public interface EurekaClientHttpRequestFactorySupplier {
|
||||
/**
|
||||
* Allows customising the {@link RequestConfig} of the underlying Apache HC5 instance.
|
||||
*
|
||||
* @author Olga Maciaszek-Sharma
|
||||
* @since 4.2.1
|
||||
*/
|
||||
@FunctionalInterface
|
||||
|
||||
Reference in New Issue
Block a user