Documentation
¶
Overview ¶
Package debugtools contains tools used for debugging the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugTransport ¶ added in v0.20.0
func DebugTransport(rt http.RoundTripper) http.RoundTripper
DebugTransport wraps an http.RoundTripper with NewTransport if smdebugtransport setting is set. Noop is the setting isn't set.
func NewTransport ¶
func NewTransport(base http.RoundTripper) http.RoundTripper
NewTransport creates a new http.RoundTripper which logs the request and response dumps.
If base is nil, http.DefaultTransport is used.
Types ¶
Click to show internal directories.
Click to hide internal directories.