File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1059,7 +1059,9 @@ media type. For example:
1059
1059
----
1060
1060
1061
1061
Consumable media type expressions can also be negated as in __!text/plain__ to match to
1062
- all requests other than those with __Content-Type__ of __text/plain__.
1062
+ all requests other than those with __Content-Type__ of __text/plain__. Also consider
1063
+ using constants provided in `MediaType` such as `APPLICATION_JSON_VALUE` and
1064
+ `APPLICATION_JSON_UTF8_VALUE`.
1063
1065
1064
1066
[TIP]
1065
1067
====
@@ -1099,7 +1101,8 @@ the `UTF-8` charset.
1099
1101
1100
1102
Just like with __consumes__, producible media type expressions can be negated as in
1101
1103
__!text/plain__ to match to all requests other than those with an __Accept__ header
1102
- value of __text/plain__.
1104
+ value of __text/plain__. Also consider using constants provided in `MediaType` such
1105
+ as `APPLICATION_JSON_VALUE` and `APPLICATION_JSON_UTF8_VALUE`.
1103
1106
1104
1107
[TIP]
1105
1108
====
You can’t perform that action at this time.
0 commit comments