Introduce addSupportedMediaTypes() in FormHttpMessageConverter #23203
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Status Quo
Although it is currently possible to add a custom supported
MediaType
toFormHttpMessageConverter
, it is a bit cumbersome since theList
returned bygetSupportedMediaTypes()
is immutable, which leads to code similar to the following.Proposal
It would be great if adding a custom media type was as simple as the following, where
addSupportedMediaTypes()
accepts a var-args list.Related Issues
Deliverables
addSupportedMediaTypes(MediaType...)
inFormHttpMessageConverter
.The text was updated successfully, but these errors were encountered: