EnableDumpWithoutRequestBody enables dump with request Body excluded, can be used in upload request to avoid dump the unreadable binary content.
()
| 1118 | // EnableDumpWithoutRequestBody enables dump with request Body excluded, |
| 1119 | // can be used in upload request to avoid dump the unreadable binary content. |
| 1120 | func (r *Request) EnableDumpWithoutRequestBody() *Request { |
| 1121 | o := r.getDumpOptions() |
| 1122 | o.RequestBody = false |
| 1123 | return r.EnableDump() |
| 1124 | } |
| 1125 | |
| 1126 | // EnableDumpWithoutResponseBody enables dump with response Body excluded, |
| 1127 | // can be used in download request to avoid dump the unreadable binary content. |