ConsumesRequestCondition should cache the parsed Content-Type #29669
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
ProducesRequestCondition
saves the parsed Accept header in a request attribute, which is then cleared after all request mapping annotations are checked. We can do the same forConsumesRequestCondition
, but only on the Spring MVC side since WebFlux usesReadOnlyHttpHeaders
which already caches the Content-Type.This was observed as part of investigations for #29421.
The text was updated successfully, but these errors were encountered: