SetClient sets the Client instance for the Request.
(c *Client)
| 102 | |
| 103 | // SetClient sets the Client instance for the Request. |
| 104 | func (r *Request) SetClient(c *Client) *Request { |
| 105 | if c == nil { |
| 106 | panic(ErrClientNil) |
| 107 | } |
| 108 | |
| 109 | r.client = c |
| 110 | return r |
| 111 | } |
| 112 | |
| 113 | // Context returns the context associated with the Request. |
| 114 | // If not set, a background context is returned. |
no outgoing calls