Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurlLogDumper ¶
CurlLogDumper will log the request using the curl command format /!\ Caution request header and Body can be heavy !!
Following example will log curl command if request has header "dump" not empty Eg tripperware: tripperware.Skip(
func(request *http.Request) bool {
return request.Header.Get("dump") != ""
},
tripperware.RequestListener(request_listener.CurlLogDumper),
)
Eg middleware: middleware.Skip(
func(request *http.Request) bool {
return request.Header.Get("dump") != ""
},
middleware.RequestListener(request_listener.CurlLogDumper),
)
Types ¶
Click to show internal directories.
Click to hide internal directories.