()
| 1033 | } |
| 1034 | |
| 1035 | func (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. |
| 1049 | func (r *Request) EnableDumpTo(output io.Writer) *Request { |
no test coverage detected