EnableDumpWithoutResponseBody enables dump with response Body excluded, can be used in download request to avoid dump the unreadable binary content.
()
| 1126 | // EnableDumpWithoutResponseBody enables dump with response Body excluded, |
| 1127 | // can be used in download request to avoid dump the unreadable binary content. |
| 1128 | func (r *Request) EnableDumpWithoutResponseBody() *Request { |
| 1129 | o := r.getDumpOptions() |
| 1130 | o.ResponseBody = false |
| 1131 | return r.EnableDump() |
| 1132 | } |
| 1133 | |
| 1134 | // EnableForceChunkedEncoding enables force using chunked encoding when uploading. |
| 1135 | func (r *Request) EnableForceChunkedEncoding() *Request { |