Timeout makes the request use the given duration as an overall timeout for the request. Additionally, if set passes the value as "timeout" parameter in URL.
(d time.Duration)
| 360 | // Timeout makes the request use the given duration as an overall timeout for the |
| 361 | // request. Additionally, if set passes the value as "timeout" parameter in URL. |
| 362 | func (r *Request) Timeout(d time.Duration) *Request { |
| 363 | if r.err != nil { |
| 364 | return r |
| 365 | } |
| 366 | r.timeout = d |
| 367 | return r |
| 368 | } |
| 369 | |
| 370 | // Body makes the request use obj as the body. Optional. |
| 371 | // If obj is a string, try to read a file of that name. |
no outgoing calls