Hi all,
I'm having a bit of trouble finding an example of how to capture the body of a POST call (the request) - on the response callback.
In a straightforward implementation - trying to read req.Body in the onResponse callback - I get an error.
Before I resort to various state-keeping techniques (queues, request-headers with the request "ID", etc), I'm wondering if it's a better way to accomplish this.
Specifically, are any of the following use-cases supported by the library?
- referencing the original request body in the onResponse callback - maybe I'm missing a setting or specific API?
- saving something in the request context in onRequest that I can query back in onResponse
Lastly - what is the use-case for the RoundTripper interface and its implementations? I couldn't find a good example so far.
Thanks in advance!
-adrian