Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultRequestFormat = "REQUEST:\n--------\n%s\n--------\n" DefaultResponseFormat = "RESPONSE:\n========\n%s\n========\n" DefaultLoggingOutput = os.Stderr )
Functions ¶
func LoggingOutput ¶
func LoggingOutput(w io.Writer) func(*LoggingTransport)
func RequestFormat ¶
func RequestFormat(fmt string) func(*LoggingTransport)
func ResponseFormat ¶
func ResponseFormat(fmt string) func(*LoggingTransport)
Types ¶
type LoggingTransport ¶
type LoggingTransport struct {
// contains filtered or unexported fields
}
func NewLoggingTransport ¶
func NewLoggingTransport(inner http.RoundTripper, opts ...func(*LoggingTransport)) *LoggingTransport
Click to show internal directories.
Click to hide internal directories.