Skip to content

Do not make HttpHeaders read-only in HttpEntity #35888

@bclozel

Description

@bclozel

As discussed in #35762, HttpEntity currently makes HttpHeaders read-only as part of its constructors. This means that once instantiated, a ResponseEntity cannot mutate its headers anymore.

While immutability is an interesting design principle, here we shouldn't enforce headers as read-only.

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