Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpHttp ¶
func DumpHttp(logLevel logger.Level) func(http.RoundTripper) http.RoundTripper
DumpHttp dumps the HTTP request and response, and prints out with logFunc.
func PanicCatcher ¶
func PanicCatcher(next http.RoundTripper) http.RoundTripper
PanicCatcher handles panics in http.RoundTripper.
func Sequencer ¶
func Sequencer(baseRoundTripper http.RoundTripper, rts ...func(http.RoundTripper) http.RoundTripper) http.RoundTripper
Sequencer chains http.RoundTrippers in a chain.
func Timer ¶
func Timer(logLevel logger.Level) func(http.RoundTripper) http.RoundTripper
Timer measures the time taken by http.RoundTripper.
Types ¶
Click to show internal directories.
Click to hide internal directories.