ddliu / go-httpclient

Advanced HTTP client for golang
MIT License
465 stars 105 forks source link

Add OPT_DEBUG to print curl-formatted requests when enabled #14

Closed bitwalker closed 8 years ago

bitwalker commented 8 years ago

I needed this for another project and thought I'd upstream it. It looks like gofmt changed quite a bit of the file, but hopefully that's kosher. If not, the implementation should be pretty easy to extract, it was basically ~5 lines of code total.

ddliu commented 8 years ago

Very useful option, and gofmt is OK for me.