On 7 Mar 2018, at 08:07, Eyal Posener <pose...@gmail.com> wrote:
> Very Nice stuff - shame he didn't merge it.
> But I see that you changes the request in the RoundTrip function, which is 
> claimed as forbidden in the docs.
> Again, I don't understand why the docs forbid it…

I expect that this is so that the user of the HTTP client API can reasonably 
reuse a *http.Request. If the RoundTripper where allowed to change it then it 
might have different URL, headers, method etc when the request is completed and 
you’d have to recreate it again from scratch.


You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to