SetOutputFile set the file that response Body will be downloaded to.
(file string)
| 552 | |
| 553 | // SetOutputFile set the file that response Body will be downloaded to. |
| 554 | func (r *Request) SetOutputFile(file string) *Request { |
| 555 | r.isSaveResponse = true |
| 556 | r.outputFile = file |
| 557 | return r |
| 558 | } |
| 559 | |
| 560 | // SetOutput set the io.Writer that response Body will be downloaded to. |
| 561 | func (r *Request) SetOutput(output io.Writer) *Request { |
no outgoing calls