I have an Akka Streams source that goes through a flow and posts an HTTP request:
source.map(toRequest)
.via(Http().outgoingConnection(host))
.map(toMessage)
Suppose that the toRequest method maps a string to an HttpRequest, and the toMessage method maps the HttpResponse to a message class that is needed to process downstream. Suppose that the message class needs to contain some of the original information.
Is it possible to get the original HttpRequest from the HttpResponse? If not, is there any way to keep some of the original information?