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

Method EnableDump

request.go:1082–1084  ·  view source on GitHub ↗

EnableDump enables dump, including all content for the request and response by default.

()

Source from the content-addressed store, hash-verified

1080
1081// EnableDump enables dump, including all content for the request and response by default.
1082func (r *Request) EnableDump() *Request {
1083 return r.SetContext(context.WithValue(r.Context(), dump.DumperKey, newDumper(r.getDumpOptions())))
1084}
1085
1086// EnableDumpWithoutBody enables dump only header for the request and response.
1087func (r *Request) EnableDumpWithoutBody() *Request {

Callers 13

EnableDumpToMethod · 0.95
EnableDumpToFileMethod · 0.95
EnableDumpWithoutBodyMethod · 0.95
EnableDumpFunction · 0.45
TestEnableDumpFunction · 0.45
testSuccessFunction · 0.45
EnableDumpAllMethod · 0.45

Calls 4

SetContextMethod · 0.95
ContextMethod · 0.95
getDumpOptionsMethod · 0.95
newDumperFunction · 0.85

Tested by 2

TestEnableDumpFunction · 0.36
testSuccessFunction · 0.36