Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecorateClient ¶
DecorateClient performs some custom modifications to an http Client
func NewLoggingTransport ¶ added in v2.7.0
func NewLoggingTransport(log *zap.SugaredLogger, logBody bool, delegate http.RoundTripper) http.RoundTripper
Types ¶
type ClientOpt ¶
func CustomTransport ¶
func CustomTransport(t http.RoundTripper) ClientOpt
CustomTransport is the option adding a custom transport on a http Client
func LoggingTransport ¶
func LoggingTransport(log *zap.SugaredLogger) ClientOpt
LoggingTransport is the option adding logging capability to an http Client
Click to show internal directories.
Click to hide internal directories.