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

Method getDumpOptions

request.go:1035–1046  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1033}
1034
1035func (r *Request) getDumpOptions() *DumpOptions {
1036 if r.dumpOptions == nil {
1037 r.dumpOptions = &DumpOptions{
1038 RequestHeader: true,
1039 RequestBody: true,
1040 ResponseHeader: true,
1041 ResponseBody: true,
1042 Output: r.getDumpBuffer(),
1043 }
1044 }
1045 return r.dumpOptions
1046}
1047
1048// EnableDumpTo enables dump and save to the specified io.Writer.
1049func (r *Request) EnableDumpTo(output io.Writer) *Request {

Callers 9

EnableDumpToMethod · 0.95
EnableDumpToFileMethod · 0.95
EnableDumpMethod · 0.95
EnableDumpWithoutBodyMethod · 0.95

Calls 1

getDumpBufferMethod · 0.95

Tested by

no test coverage detected