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

Method EnableDumpTo

request.go:1049–1052  ·  view source on GitHub ↗

EnableDumpTo enables dump and save to the specified io.Writer.

(output io.Writer)

Source from the content-addressed store, hash-verified

1047
1048// EnableDumpTo enables dump and save to the specified io.Writer.
1049func (r *Request) EnableDumpTo(output io.Writer) *Request {
1050 r.getDumpOptions().Output = output
1051 return r.EnableDump()
1052}
1053
1054// EnableDumpToFile enables dump and save to the specified filename.
1055func (r *Request) EnableDumpToFile(filename string) *Request {

Callers 2

EnableDumpToFunction · 0.80
TestEnableDumpToFunction · 0.80

Calls 2

getDumpOptionsMethod · 0.95
EnableDumpMethod · 0.95

Tested by 1

TestEnableDumpToFunction · 0.64