Skip to content

Request header filtering in @RequestMapping [SPR-5690] #10360

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits afa4618

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions