Like using Message<> we get the headers in Function<>, Is it possible to get Headers inside Supplier<> in spring cloud function?
Asked
Active
Viewed 57 times
0
-
Hi Oleg Zhurakousky , can you please provide some input? – nikhil bajaj Mar 13 '23 at 12:32
-
I am not sure what you are asking. Supplier creates the data, so you can create anything you want and if inside such supplier (`Supplier
>`) you are making Http request, then you can copy any http headers into produced message headers. – Oleg Zhurakousky Mar 14 '23 at 08:26 -
What i meant was in case of Function
,Output>, we can get the headers in the message and that we can use inside the Function block but can we do similar kind in case of Supplier as supplier doesn't take any input and only returns a result? – nikhil bajaj Mar 20 '23 at 05:23 -
I am not following. You just said it yourself `supplier doesn't take any input`, so where would you expect the headers to come from? – Oleg Zhurakousky Mar 20 '23 at 14:50