Async HTTP Client (AHC)
JVM since1.0.0 Native since1.0.0
Call external HTTP services using Async Http Client.
What’s inside
-
Async HTTP Client (AHC) component, URI syntax:
ahc:httpUri
Please refer to the above link for usage and configuration details.
Maven coordinates
Or add the coordinates to your existing project:
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-ahc</artifactId>
</dependency>
Check the User guide for more information about writing Camel Quarkus applications.
SSL in native mode
This extension auto-enables SSL support in native mode. Hence you do not need to add
quarkus.ssl.native=true
to your application.properties
yourself. See also
Quarkus SSL guide.
transferException option in native mode
To use the transferException
option in native mode, you must enable support for object serialization. Refer to the native mode user guide
for more information.
You will also need to enable serialization for the exception classes that you intend to serialize. For example.
@RegisterForReflection(targets = { IllegalStateException.class, MyCustomException.class }, serialization = true)
Additional Camel Quarkus configuration
-
Check the Character encodings section of the Native mode guide if you expect your application to send or receive requests using non-default encodings.