Netty HTTP Extension
Since Camel Quarkus 0.2
The Netty HTTP extension provides HTTP transport on top of the Netty extension.
Maven users will need to add the following dependency to their pom.xml
for this extension.
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-netty-http</artifactId>
</dependency>
Usage
Please refer to the Netty HTTP component page.
Also read the Netty extension page that may contain some Quarkus specific information.
Example Usage
public class CamelRoute extends RouteBuilder {
@Override
public void configure() {
/* consumer */
from("netty-http:http://0.0.0.0:8999/foo")
.transform().constant("Netty Hello World");
/* /producer is proxying /foo */
from("netty-http:http://0.0.0.0:8999/producer")
.to("netty-http:http://localhost:8999/foo");
}
}
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.