Chapter 31. HTTP
Send requests to external HTTP servers using Apache HTTP Client 4.x.
31.1. What’s inside Copy linkLink copied to clipboard!
-
HTTP component, URI syntax:
http://httpUri
-
HTTPS (Secure) component, URI syntax:
https://httpUri
Please refer to the above links for usage and configuration details.
31.2. Maven coordinates Copy linkLink copied to clipboard!
Create a new project with this extension on code.quarkus.redhat.com
Or add the coordinates to your existing project:
<dependency> <groupId>org.apache.camel.quarkus</groupId> <artifactId>camel-quarkus-http</artifactId> </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-http</artifactId>
</dependency>
31.3. SSL in native mode Copy linkLink copied to clipboard!
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.
31.4. Additional Camel Quarkus configuration Copy linkLink copied to clipboard!
- Check the Character encodings section of the Native mode guide if you expect your application to send or receive requests using non-default encodings.