Question:
I am trying to reconstruct the raw headers from the request object from looking like this:Answer:
You can firstflatMap()
them to an array of values and then reduce()
them pairwise to your desired result object:If you have better answer, please add a comment about this, thank you!