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

Method EnableDumpWithoutResponseBody

request.go:1128–1132  ·  view source on GitHub ↗

EnableDumpWithoutResponseBody enables dump with response Body excluded, can be used in download request to avoid dump the unreadable binary content.

()

Source from the content-addressed store, hash-verified

1126// EnableDumpWithoutResponseBody enables dump with response Body excluded,
1127// can be used in download request to avoid dump the unreadable binary content.
1128func (r *Request) EnableDumpWithoutResponseBody() *Request {
1129 o := r.getDumpOptions()
1130 o.ResponseBody = false
1131 return r.EnableDump()
1132}
1133
1134// EnableForceChunkedEncoding enables force using chunked encoding when uploading.
1135func (r *Request) EnableForceChunkedEncoding() *Request {

Calls 2

getDumpOptionsMethod · 0.95
EnableDumpMethod · 0.95

Tested by 1

TestEnableDumpFunction · 0.64