I'm building the pipeline with spring cloud stream starters and httpclient
processor is one of the steps. My requirement is to invoke the remote http server and enrich the original message with the response.
The problem is that httpclient
processor doesn't allow to propagate attributes from original message, it only allows to evaluate the message expression based on reply body.
I was suggested to store some attributes in message headers before httpclient
, but getting MessageHeaders is immutable
exception.
So, basically, I can't proceed the pipeline after httpclient
as I'm lacking the needed attributes from original message.
See the detailed discussion in github
Please advise.
Thanks