| // Do not edit directly! |
| // This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page |
| [id="extensions-netty-http"] |
| = Netty HTTP |
| :page-aliases: extensions/netty-http.adoc |
| :linkattrs: |
| :cq-artifact-id: camel-quarkus-netty-http |
| :cq-native-supported: true |
| :cq-status: Stable |
| :cq-status-deprecation: Stable |
| :cq-description: Netty HTTP server and client using the Netty 4.x. |
| :cq-deprecated: false |
| :cq-jvm-since: 0.2.0 |
| :cq-native-since: 0.2.0 |
| |
| ifeval::[{doc-show-badges} == true] |
| [.badges] |
| [.badge-key]##JVM since##[.badge-supported]##0.2.0## [.badge-key]##Native since##[.badge-supported]##0.2.0## |
| endif::[] |
| |
| The Netty HTTP extension provides HTTP transport on top of the xref:reference/extensions/netty.adoc[Netty extension]. |
| |
| |
| [id="extensions-netty-http-whats-inside"] |
| == What's inside |
| |
| * xref:{cq-camel-components}::netty-http-component.adoc[Netty HTTP component], URI syntax: `netty-http:protocol://host:port/path` |
| |
| Please refer to the above link for usage and configuration details. |
| |
| [id="extensions-netty-http-maven-coordinates"] |
| == Maven coordinates |
| |
| https://{link-quarkus-code-generator}/?extension-search=camel-quarkus-netty-http[Create a new project with this extension on {link-quarkus-code-generator}, window="_blank"] |
| |
| Or add the coordinates to your existing project: |
| |
| [source,xml] |
| ---- |
| <dependency> |
| <groupId>org.apache.camel.quarkus</groupId> |
| <artifactId>camel-quarkus-netty-http</artifactId> |
| </dependency> |
| ---- |
| ifeval::[{doc-show-user-guide-link} == true] |
| Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. |
| endif::[] |
| |
| [id="extensions-netty-http-transferexception-option-in-native-mode"] |
| == transferException option in native mode |
| |
| To use the `transferException` option in native mode, you must enable support for object serialization. Refer to the xref:user-guide/native-mode.adoc#serialization[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. |
| [source,java] |
| ---- |
| @RegisterForReflection(targets = { IllegalStateException.class, MyCustomException.class }, serialization = true) |
| ---- |
| |
| [id="extensions-netty-http-additional-camel-quarkus-configuration"] |
| == Additional Camel Quarkus configuration |
| |
| * Check the xref:user-guide/native-mode.adoc#charsets[Character encodings section] of the Native mode guide if you expect |
| your application to send or receive requests using non-default encodings. |
| |