MCPcopy Create free account
hub / github.com/imroc/req / EnableDumpWithoutRequestBody

Method EnableDumpWithoutRequestBody

request.go:1120–1124  ·  view source on GitHub ↗

EnableDumpWithoutRequestBody enables dump with request Body excluded, can be used in upload request to avoid dump the unreadable binary content.

()

Source from the content-addressed store, hash-verified

1118// EnableDumpWithoutRequestBody enables dump with request Body excluded,
1119// can be used in upload request to avoid dump the unreadable binary content.
1120func (r *Request) EnableDumpWithoutRequestBody() *Request {
1121 o := r.getDumpOptions()
1122 o.RequestBody = false
1123 return r.EnableDump()
1124}
1125
1126// EnableDumpWithoutResponseBody enables dump with response Body excluded,
1127// can be used in download request to avoid dump the unreadable binary content.

Callers 3

TestEnableDumpFunction · 0.80

Calls 2

getDumpOptionsMethod · 0.95
EnableDumpMethod · 0.95

Tested by 1

TestEnableDumpFunction · 0.64