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
type TransportWithDiff ¶ added in v2.11.0
type TransportWithDiff struct {
// contains filtered or unexported fields
}
func NewTransportWithDiff ¶ added in v2.11.0
func NewTransportWithDiff(transport http.RoundTripper, log *zap.SugaredLogger) *TransportWithDiff
Click to show internal directories.
Click to hide internal directories.