MSP-8520 up deps
This commit is contained in:
1 parent
c14f8441fb
commit
884aa6a439
304 files changed
+18223
-4352
No files matched your search
+11
@@ -39,6 +39,17 @@ func LogDump(dumpRequest bool, dumpResponse bool) LogOption {
|
||||
}
|
||||
}
|
||||
|
||||
// LogBody enables logging of the HTTP request and/or response body.
|
||||
//
|
||||
// requestBody controls logging of the request body, and responseBody
|
||||
// controls logging of the response body.
|
||||
func LogBody(requestBody bool, responseBody bool) LogOption {
|
||||
return func(cfg *logConfig) {
|
||||
cfg.LogRequestBody = requestBody
|
||||
cfg.LogResponseBody = responseBody
|
||||
}
|
||||
}
|
||||
|
||||
// LogHeaders enables logging of HTTP request and response headers.
|
||||
func LogHeaders(requestHeaders bool, responseHeaders bool) LogOption {
|
||||
return func(cfg *logConfig) {
|
||||
|
||||
Reference in new issue
Block a user