Skip to content

Move multipart support out of FormHttpMessageConverter #36256

Description

@bclozel

With the introduction of the new multipart converter in #36255, we need to clarify the responsibilities between MultipartHttpMessageConverter and the existing FormHttpMessageConverter.

FormHttpMessageConverter should focus on "application/x-www-form-urlencoded" media types only and deal with MultiValueMap<String, Object> payloads. MultipartHttpMessageConverter should focus on "multipart/*" media types only and deal with MultiValueMap<String, Part> payloads for reading and MultiValueMap<String, Object> for writing.

We should also deprecate AllEncompassingFormHttpMessageConverter completely, as instantiating a MultipartHttpMessageConverter with part converters should achieve the same and avoid duplication.

This will require significant changes in HttpMessageConverters and our existing test suite to keep existing features in place.

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