appoptics / appoptics-api-go

The official Go client for the AppOptics metrics API
https://docs.appoptics.com/api/
Apache License 2.0
4 stars 7 forks source link

Use httputil.DumpRequest/DumpResponse in debug #79

Closed trevrosen closed 4 years ago

trevrosen commented 4 years ago

Fixes #78

What

Small fix to remove manual IO manipulation to dump out request/response stuff in debug mode.

Why

httputil offers functions for this, which I didn't realize at the time that I wrote the original code.