-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #599 Document the need to set quarkus.native.add-all-charsets = t…
…rue in HTTP extensions
- Loading branch information
1 parent
6bec185
commit 7f9ec9c
Showing
8 changed files
with
95 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
* xref:user-guide.adoc[User guide] | ||
** xref:first-steps.adoc[First steps] | ||
** xref:cdi.adoc[CDI] | ||
** xref:native-mode.adoc[Native mode] | ||
** xref:examples.adoc[Examples] | ||
* xref:contributor-guide.adoc[Contributor guide] | ||
* xref:list-of-camel-quarkus-extensions.adoc[List of Camel Quarkus extensions] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[[ahc]] | ||
= Async HTTP Client (AHC) Extension | ||
|
||
*Since Camel Quarkus 1.0.0* | ||
|
||
The AHC component provides HTTP based endpoints for consuming external HTTP resources (as a client to call external | ||
servers using HTTP). It is using the https://github.com/AsyncHttpClient/async-http-client[Async Http Client library] | ||
under the hood. | ||
|
||
Maven users will need to add the following dependency to their `pom.xml` for this extension. | ||
|
||
[source,xml] | ||
---- | ||
<dependency> | ||
<groupId>org.apache.camel.quarkus</groupId> | ||
<artifactId>camel-quarkus-ahc</artifactId> | ||
</dependency> | ||
---- | ||
|
||
== Usage | ||
|
||
Please refer to the https://camel.apache.org/components/latest/ahc-component.html[AHC] component page. | ||
|
||
|
||
== Configuration | ||
|
||
* Check the xref: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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[[http]] | ||
= HTTP Extension | ||
|
||
*Since Camel Quarkus 1.0.0* | ||
|
||
The HTTP component provides HTTP based endpoints for calling external HTTP resources (as a client to call external | ||
servers using HTTP). | ||
|
||
Maven users will need to add the following dependency to their `pom.xml` for this extension. | ||
|
||
[source,xml] | ||
---- | ||
<dependency> | ||
<groupId>org.apache.camel.quarkus</groupId> | ||
<artifactId>camel-quarkus-http</artifactId> | ||
</dependency> | ||
---- | ||
|
||
== Usage | ||
|
||
Please refer to the https://camel.apache.org/components/latest/http-component.html[HTTP] component page. | ||
|
||
|
||
== Configuration | ||
|
||
* Check the xref: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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
= Native mode | ||
|
||
Things to consider before you run your application in the native mode. | ||
|
||
[[charsets]] | ||
== Character encodings | ||
|
||
By default only a the following `Charsets` are available in the native mode (https://github.com/oracle/graal/blob/vm-19.3.0/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/LocalizationFeature.java#L149-L163[source]): | ||
|
||
[code,text] | ||
---- | ||
Charset.defaultCharset(), US-ASCII, ISO-8859-1, UTF-8, UTF-16BE, UTF-16LE, UTF-16 | ||
---- | ||
|
||
If you expect your application to need any encoding not included in this set or if you see | ||
an `UnsupportedCharsetException` thrown in the native mode, please add the following entry to your | ||
`application.properties`: | ||
|
||
[code,properties] | ||
---- | ||
quarkus.native.add-all-charsets = true | ||
---- | ||
|
||
See also https://quarkus.io/guides/all-config#quarkus-core_quarkus.native.add-all-charsets[quarkus.native.add-all-charsets] | ||
in Quarkus documentation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters