Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public class ReactorClientHttpRequestFactory implements ClientHttpRequestFactory
private static final Log logger = LogFactory.getLog(ReactorClientHttpRequestFactory.class);

private static final Function<HttpClient, HttpClient> defaultInitializer =
client -> client.compress(true).responseTimeout(Duration.ofSeconds(10));
client -> client.compress(true)
.responseTimeout(Duration.ofSeconds(10))
.proxyWithSystemProperties();


private final @Nullable ReactorResourceFactory resourceFactory;
Expand All @@ -69,7 +71,8 @@ public class ReactorClientHttpRequestFactory implements ClientHttpRequestFactory

/**
* Constructor with default client, created via {@link HttpClient#create()},
* and with {@link HttpClient#compress compression} enabled.
* and with {@link HttpClient#compress compression} and
* {@link HttpClient#proxyWithSystemProperties() proxyWithSystemProperties} enabled.
*/
public ReactorClientHttpRequestFactory() {
this(defaultInitializer.apply(HttpClient.create()));
Expand Down