I came up with the following solution.
On the http-component URL I set a custom httpClientConfigurer
:
http://localhost:8080/foo?httpClientConfigurer=myHttpClientConfigurer
where myHttpClientConfigurer
is a bean with an implementation similar to this:
public class Http10ClientConfigurer implements HttpClientConfigurer {
@Override
public void configureHttpClient(HttpClient httpClient) {
if (httpClient.getParams() != null) {
httpClient.getParams().setVersion(new HttpVersion(1, 0));
} else {
// Could not set HTTP 1.0 version on httpClient
}
}
}