Package Usage: go: github.com/henvic/httpretty
Package httpretty prints your HTTP requests pretty on your terminal screen.
You can use this package both on the client-side and on the server-side.
This package provides a better way to view HTTP traffic without httputil
DumpRequest, DumpRequestOut, and DumpResponse heavy debugging functions.
You can use the logger quickly to log requests you are opening. For example:
If you pass nil to the logger.RoundTripper it is going to fallback to http.DefaultTransport.
You can use the logger quickly to log requests on your server. For example:
Note: server logs don't include response headers set by the server.
Client logs don't include request headers set by the HTTP client.
11 versions
Latest release: over 1 year ago
351 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/henvic/httpretty