Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface { RequestPrintf(format string, args ...interface{}) ResponsePrintf(format string, args ...interface{}) }
Logger is an interface representing the Logger struct
type RoundTripper ¶
type RoundTripper struct { // Default http.RoundTripper Rt http.RoundTripper // If Logger is not nil, then RoundTrip method will debug the JSON // requests and responses Logger Logger }
RoundTripper satisfies the http.RoundTripper interface and is used to customize the default http client RoundTripper
Click to show internal directories.
Click to hide internal directories.