Skip to content

Introduce HttpMessageConverter#canWriteRepeatedly #36252

@bclozel

Description

@bclozel

The AbstractHttpMessageConverter#supportsRepeatableWrites contract is a protected method that message converters can override. This method tells whether the current converter can write several times the payload given as a parameter. This is mainly useful on the client side, where we need to know if we can send the HTTP message again, after receiving an HTTP redirect status.

Because this method is protected, this limits our ability to call it from a different package; this is needed for #33263.

With this issue, we should promote this method to the main HttpMessageConverter and deprecate the former.

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions