EnableDump enables dump, including all content for the request and response by default.
()
| 1080 | |
| 1081 | // EnableDump enables dump, including all content for the request and response by default. |
| 1082 | func (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. |
| 1087 | func (r *Request) EnableDumpWithoutBody() *Request { |