SetOutput set the io.Writer that response Body will be downloaded to.
(output io.Writer)
| 559 | |
| 560 | // SetOutput set the io.Writer that response Body will be downloaded to. |
| 561 | func (r *Request) SetOutput(output io.Writer) *Request { |
| 562 | if output == nil { |
| 563 | r.client.log.Warnf("nil io.Writer is not allowed in SetOutput") |
| 564 | return r |
| 565 | } |
| 566 | r.output = output |
| 567 | r.isSaveResponse = true |
| 568 | return r |
| 569 | } |
| 570 | |
| 571 | // SetQueryParams set URL query parameters from a map for the request. |
| 572 | func (r *Request) SetQueryParams(params map[string]string) *Request { |