Skip to content

Commit cea16e8

Browse files
committed
Sync documentation of main branch
1 parent b857920 commit cea16e8

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

_generated-doc/main/config/quarkus-all-config.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9138,7 +9138,7 @@ Environment variable: `+++QUARKUS_HTTP_COMPRESS_MEDIA_TYPES+++`
91389138
endif::add-copy-button-to-env-var[]
91399139
--
91409140
|list of string
9141-
|`text/html,text/plain,text/xml,text/css,text/javascript,application/javascript,application/graphql+json`
9141+
|`text/html,text/plain,text/xml,text/css,text/javascript,application/javascript,application/json,application/graphql+json,application/xhtml+xml`
91429142

91439143
a|icon:lock[title=Fixed at build time] [[quarkus-vertx-http_quarkus-http-compression-level]] [.property-path]##link:#quarkus-vertx-http_quarkus-http-compression-level[`quarkus.http.compression-level`]##
91449144

_generated-doc/main/config/quarkus-vertx-http_quarkus.http.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ Environment variable: `+++QUARKUS_HTTP_COMPRESS_MEDIA_TYPES+++`
275275
endif::add-copy-button-to-env-var[]
276276
--
277277
|list of string
278-
|`text/html,text/plain,text/xml,text/css,text/javascript,application/javascript,application/graphql+json`
278+
|`text/html,text/plain,text/xml,text/css,text/javascript,application/javascript,application/json,application/graphql+json,application/xhtml+xml`
279279

280280
a|icon:lock[title=Fixed at build time] [[quarkus-vertx-http_quarkus-http-compression-level]] [.property-path]##link:#quarkus-vertx-http_quarkus-http-compression-level[`quarkus.http.compression-level`]##
281281

_versions/main/guides/http-reference.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The response body of a static resource is not compressed by default.
6969
You can enable the HTTP compression support by means of `quarkus.http.enable-compression=true`.
7070
If compression support is enabled then the response body is compressed if the `Content-Type` header derived from the file name of a resource is a compressed media type as configured via `quarkus.http.compress-media-types`.
7171

72-
TIP: By default, the following list of media types is compressed: `text/html`, `text/plain`, `text/xml`, `text/css`, `text/javascript`, `application/javascript`, `application/graphql+json`. It means some other noteworthy media types such as `application/json`, `application/xhtml+xml` are NOT compressed by default.
72+
TIP: By default, the following list of media types is compressed: `text/html`, `text/plain`, `text/xml`, `text/css`, `text/javascript`, `application/javascript`, `application/json`, `application/graphql+json` and `application/xhtml+xml`.
7373

7474
NOTE: If the client does not indicate its support for HTTP compression in a request header, e.g. `Accept-Encoding: deflate, gzip, br`, then the response body is not compressed.
7575

_versions/main/guides/qute-reference.adoc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ You can learn more about virtual methods in the <<virtual_methods,following sect
335335

336336
[[expression_resolution]]
337337
==== Resolution
338-
338+
When evaluating expressions a list of registered <<value-resolvers,value resolvers>> is used.
339339
The first part of the expression is always resolved against the <<current_context_object,current context object>>.
340340
If no result is found for the first part, it's resolved against the parent context object (if available).
341341
For an expression that starts with a namespace the current context object is found using all the available ``NamespaceResolver``s.
@@ -1451,6 +1451,11 @@ NOTE: The template rendering is divided in two phases. During the first phase, w
14511451
==== Value Resolvers
14521452

14531453
Value resolvers are used when evaluating expressions.
1454+
First the resolvers that apply to the given `EvalContext` are filtered.
1455+
Then the resolver with _highest priority_ is used to resolve the data.
1456+
If a `io.quarkus.qute.Results.NotFound` object is returned then the next available resolver is used instead.
1457+
However, `null` return value is considered a valid result.
1458+
14541459
A custom `io.quarkus.qute.ValueResolver` can be registered programmatically via `EngineBuilder.addValueResolver()`.
14551460

14561461
.`ValueResolver` Builder Example
@@ -1462,6 +1467,10 @@ engineBuilder.addValueResolver(ValueResolver.builder()
14621467
.build());
14631468
----
14641469

1470+
TIP: In Quarkus, the <<engine-customization,`@EngineConfiguration`>> annotation can be used to register a `ValueResolver` implemented as a CDI bean.
1471+
1472+
NOTE: Keep in mind that the reflection-based value resolver has priority `-1` and the max priority value for resolvers generated from <<template_data,`@TemplateData`>> and <<typesafe_expressions,type-safe expressions>> is `10`.
1473+
14651474
[[template-locator]]
14661475
==== Template Locator
14671476

_versions/main/guides/reactive-routes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ The response body is never compressed if:
716716
- the route method is annotated with `@io.quarkus.vertx.http.Uncompressed`, or
717717
- the `Content-Type` header is not set.
718718
719-
TIP: By default, the following list of media types is compressed: `text/html`, `text/plain`, `text/xml`, `text/css`, `text/javascript` and `application/javascript`.
719+
TIP: By default, the following list of media types is compressed: `text/html`, `text/plain`, `text/xml`, `text/css`, `text/javascript`, `application/javascript`, `application/json`, `application/graphql+json` and `application/xhtml+xml`.
720720
721721
NOTE: If the client does not support HTTP compression then the response body is not compressed.
722722

_versions/main/guides/rest.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3279,7 +3279,7 @@ The response body is never compressed if:
32793279
- the resource method is annotated with `@io.quarkus.vertx.http.Uncompressed`, or
32803280
- the `Content-Type` header is not set.
32813281

3282-
TIP: By default, the following list of media types is compressed: `text/html`, `text/plain`, `text/xml`, `text/css`, `text/javascript` and `application/javascript`.
3282+
TIP: By default, the following list of media types is compressed: `text/html`, `text/plain`, `text/xml`, `text/css`, `text/javascript`, `application/javascript`, `application/json`, `application/graphql+json` and `application/xhtml+xml`.
32833283

32843284
NOTE: If the client does not support HTTP compression then the response body is not compressed.
32853285

0 commit comments

Comments
 (0)