Skip to content

Optimize request and response header handling in Spring MVC #36334

@rstoyanchev

Description

@rstoyanchev

ServletServetHttpRequest and ServletServerHttpResponse use HttpHeaders, on the request side copying headers from the Servlet request into it, and on the response side merging headers into the Servlet response.

This creates overhead, which we avoid on the WebFlux side via server specific, MultiValueMap header adapters that operate directly on the headers of the underlying server API.

We can derive a similar result through Servlet request and response header adapters.

Metadata

Metadata

Assignees

Labels

for: upgrade-attentionAn issue requiring extra attention when upgradingin: 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