@ -585,10 +585,10 @@ parameter, though which additional constraints can be expressed.
@@ -585,10 +585,10 @@ parameter, though which additional constraints can be expressed.
=== Predicates
You can write your own `RequestPredicate`, but the `RequestPredicates` utility class
offers commonly used implementations, based on the request path, HTTP method, content-type,
and so on.
The following example uses a request predicate to create a constraint based on the `Accept`
header:
offers built-in options for common needs for matching based on the HTTP method, request
path, headers, xref:#api-version[API version], and more.
The following example uses an `Accept` header, request predicate:
@ -483,8 +483,12 @@ superseded by (4), which allows only a strict match, and therefore does not matc
@@ -483,8 +483,12 @@ superseded by (4), which allows only a strict match, and therefore does not matc
In this scenario, a `NotAcceptableApiVersionException` results in a 400 response.
NOTE: The above assumes the request version is a
xref:web/webmvc/mvc-config/api-version.adoc["supported" version], or otherwise it
would fail xref:web/webflux-versioning.adoc#webflux-versioning-validation[Validation].
@ -555,10 +555,10 @@ parameter, through which additional constraints can be expressed.
@@ -555,10 +555,10 @@ parameter, through which additional constraints can be expressed.
=== Predicates
You can write your own `RequestPredicate`, but the `RequestPredicates` utility class
offers commonly used implementations, based on the request path, HTTP method, content-type,
and so on.
The following example uses a request predicate to create a constraint based on the `Accept`
header:
offers built-in options for common needs for matching based on the HTTP method, request
path, headers, xref:#api-version[API version], and more.
The following example uses an `Accept` header, request predicate:
@ -505,8 +505,10 @@ In this scenario, a `NotAcceptableApiVersionException` results in a 400 response
@@ -505,8 +505,10 @@ In this scenario, a `NotAcceptableApiVersionException` results in a 400 response
NOTE: The above assumes the request version is a
xref:web/webmvc/mvc-config/api-version.adoc["supported" version], or otherwise it
would fail xref:web/webmvc-versioning.adoc#mvc-versioning-validation[Validation].
would fail.
See xref:web/webmvc-versioning.adoc[API Versioning] for more details on underlying