HttpWebHandlerAdapter needs possibility to manipulate requests before their handle #32942
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
Currently
HttpWebHandlerAdapter
handles requests as followsMy need was to populate
traceparent
from aX-Correlation-Id
header. I was stuck as I would have need to insert something before point3
and nothing was possible.I ended by implementing a
BeanPostProcessor
which wraps theHttpHandler
instance and manipulates request before anything, hence before point 1.I would suggest something like
ForwardedHeaderTransformer
implement itHttpHandler
is instanciated (instead of getting a nullable instance ofForwardedHeaderTransformer
Is this understandable?
I also think that it may lead ti misunderstanding with
WebFilter
.Maybe the issue is with points
1
and2
doing things out of the common lifecycle.The text was updated successfully, but these errors were encountered: