This is an automated email from the ASF dual-hosted git repository.

Croway pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 3a11fd2cff52 camel-vertx-http - document that the Vert.x Web Client 
follows redirects by default
3a11fd2cff52 is described below

commit 3a11fd2cff527010633b73023da7af2893ed37e7
Author: croway <[email protected]>
AuthorDate: Tue Oct 27 15:17:48 2026 +0100

    camel-vertx-http - document that the Vert.x Web Client follows redirects by 
default
---
 .../org/apache/camel/catalog/docs/vertx-http-component.adoc    | 10 +++++++++-
 .../camel-vertx-http/src/main/docs/vertx-http-component.adoc   | 10 +++++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/vertx-http-component.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/vertx-http-component.adoc
index 89760b5a9bf0..802d3ee848e4 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/vertx-http-component.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/vertx-http-component.adoc
@@ -93,10 +93,18 @@ Camel will handle, according to the HTTP response code:
 response.
 * Response code is in the range 300..399, Camel regards it as a
 redirection response and will throw a `HttpOperationFailedException`
-with the information.
+with the information. Note that the Vert.x Web Client follows redirects by 
default, in which case Camel only sees the
+response of the redirect target. See _Redirects_ below.
 * Response code is 400+, Camel regards it as an external server failure
 and will throw a `HttpOperationFailedException` with the information.
 
+=== Redirects
+
+The Vert.x Web Client follows redirects by default. The request is re-sent to 
the redirect target with the headers of
+the message; Vert.x removes the `Authorization`, `Proxy-Authorization` and 
`Cookie` headers when the target is on a
+different origin. To handle redirects yourself, set `followRedirects` to 
`false` on the `WebClientOptions` given with
+the `webClientOptions` option: a redirection response then throws a 
`HttpOperationFailedException`, as described above.
+
 === throwExceptionOnFailure
 
 The option, `throwExceptionOnFailure`, can be set to `false` to prevent
diff --git 
a/components/camel-vertx/camel-vertx-http/src/main/docs/vertx-http-component.adoc
 
b/components/camel-vertx/camel-vertx-http/src/main/docs/vertx-http-component.adoc
index 89760b5a9bf0..802d3ee848e4 100644
--- 
a/components/camel-vertx/camel-vertx-http/src/main/docs/vertx-http-component.adoc
+++ 
b/components/camel-vertx/camel-vertx-http/src/main/docs/vertx-http-component.adoc
@@ -93,10 +93,18 @@ Camel will handle, according to the HTTP response code:
 response.
 * Response code is in the range 300..399, Camel regards it as a
 redirection response and will throw a `HttpOperationFailedException`
-with the information.
+with the information. Note that the Vert.x Web Client follows redirects by 
default, in which case Camel only sees the
+response of the redirect target. See _Redirects_ below.
 * Response code is 400+, Camel regards it as an external server failure
 and will throw a `HttpOperationFailedException` with the information.
 
+=== Redirects
+
+The Vert.x Web Client follows redirects by default. The request is re-sent to 
the redirect target with the headers of
+the message; Vert.x removes the `Authorization`, `Proxy-Authorization` and 
`Cookie` headers when the target is on a
+different origin. To handle redirects yourself, set `followRedirects` to 
`false` on the `WebClientOptions` given with
+the `webClientOptions` option: a redirection response then throws a 
`HttpOperationFailedException`, as described above.
+
 === throwExceptionOnFailure
 
 The option, `throwExceptionOnFailure`, can be set to `false` to prevent

Reply via email to