Closed
Description
Arjen Poutsma opened SPR-5690 and commented
See #10294:
It is useful to filter @RequestMapping
method based on request headers, similarly to filtering by paramters. In effect, this feature would look something like:
@RequestMapping
(value = "/hotels", header = "content-type=text/*")
This would match requests where the Content-Type header is 'text/plain', 'text/html', etc.
Issue Links:
- @RequestMapping to narrow on Request Header details [SPR-5433] #10107
@RequestMapping
to narrow on Request Header details ("is duplicated by") - @RequestMapping narrowing based on presence of command object [SPR-4368] #9046
@RequestMapping
narrowing based on presence of command object ("is duplicated by") - Content-type filtering in @RequestMapping [SPR-5623] #10294 Content-type filtering in
@RequestMapping
Referenced from: commits afa4618