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

Method EnableDumpWithoutBody

request.go:1087–1092  ·  view source on GitHub ↗

EnableDumpWithoutBody enables dump only header for the request and response.

()

Source from the content-addressed store, hash-verified

1085
1086// EnableDumpWithoutBody enables dump only header for the request and response.
1087func (r *Request) EnableDumpWithoutBody() *Request {
1088 o := r.getDumpOptions()
1089 o.RequestBody = false
1090 o.ResponseBody = false
1091 return r.EnableDump()
1092}
1093
1094// EnableDumpWithoutHeader enables dump only Body for the request and response.
1095func (r *Request) EnableDumpWithoutHeader() *Request {

Callers 3

EnableDumpWithoutBodyFunction · 0.80
TestEnableDumpFunction · 0.80

Calls 2

getDumpOptionsMethod · 0.95
EnableDumpMethod · 0.95

Tested by 1

TestEnableDumpFunction · 0.64