This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch CAMEL-22088 in repository https://gitbox.apache.org/repos/asf/camel.git
commit 05fbc5cb9f402e121c382ead2386d899d8c2ae52 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Thu May 22 10:49:58 2025 +0200 CAMEL-22088 - Camel-HTTP: Document httpClient.* possible values Signed-off-by: Andrea Cosentino <anco...@gmail.com> --- .../camel-http/src/main/docs/http-component.adoc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/components/camel-http/src/main/docs/http-component.adoc b/components/camel-http/src/main/docs/http-component.adoc index 35d4fe65f2a..cf18856564f 100644 --- a/components/camel-http/src/main/docs/http-component.adoc +++ b/components/camel-http/src/main/docs/http-component.adoc @@ -334,6 +334,26 @@ Message out = exchange.getOut(); int responseCode = out.getHeader(Exchange.HTTP_RESPONSE_CODE, Integer.class); ------------------------------------------------------------------------------------ +=== Defining specific properties of Apache HTTP client via Camel parameters + +There are different parameters you coul set in a route, via parameter, that will influence the behavior of the Apache HTTP Client. + +Most of the option are available here: https://hc.apache.org/httpcomponents-client-5.4.x/current/httpclient5/apidocs/org/apache/hc/client5/http/config/RequestConfig.Builder.html[Apache HttpClient Request Config Builder]. + +* httpClient.authenticationEnabled - Determines whether authentication should be handled automatically. +* httpClient.circularRedirectsAllowed - Determines whether circular redirects (redirects to the same location) should be allowed. +* httpClient.connectionKeepAlive - Determines the default of value of connection keep-alive time period when not explicitly communicated by the origin server with a Keep-Alive response header. +* httpClient.connectionRequestTimeout - Determines the connection lease request timeout used when requesting a connection from the connection manager. +* httpClient.contentCompressionEnabled - Determines whether the target server is requested to compress content. +* httpClient.cookieSpec - Determines the name of the cookie specification to be used for HTTP state management. +* httpClient.defaultKeepAlive - Determines the default keep-alive +* httpClient.expectContinueEnabled - Determines whether the 'Expect: 100-Continue' handshake is enabled for entity enclosing methods. +* httpClient.hardCancellationEnabled - Determines whether request cancellation should kill the underlying connection. +* httpClient.maxRedirects - Determines the maximum number of redirects to be followed. +* httpClient.protocolUpgradeEnabled - Determines whether the client server should automatically attempt to upgrade to a safer or a newer version of the protocol, whenever possible. +* httpClient.redirectsEnabled - Determines whether redirects should be handled automatically. +* httpClient.responseTimeout - Determines the timeout until arrival of a response from the opposite endpoint. + === Disabling Cookies To disable cookies in the CookieStore, you can set the HTTP Client to ignore cookies by