We have a lot of service to service calls in our application, and 
throughout our code we have blocks of code to add http headers for tracing 
and authentication, we are now adding debug logs to dump the request and 
the response.

The documentation states "do not modify the request" 
<https://pkg.go.dev/net/http#RoundTripper>, which is a vague statements 
about what can/should be done in a round tripper.

Would it be in violation of documentation and specs to use 
httputil.DumpRequestOut and httputil.DumpResponse in a round tripper?

I found this post 
<https://groups.google.com/g/golang-nuts/c/taT88-a8R3s/m/fUbIXuUkAQAJ>, but 
it still doesn't seem definitive on the subject.

thank you in advance, Jason

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/32e63913-3807-4e72-a7ee-01f985b98e1an%40googlegroups.com.

Reply via email to