SetStreamResponseBody enables or disables response body streaming. When enabled, the response body can be read as a stream using BodyStream() instead of being fully loaded into memory. This is useful for large responses or server-sent events.
(enable bool)
| 694 | // instead of being fully loaded into memory. This is useful for large responses |
| 695 | // or server-sent events. |
| 696 | func (c *Client) SetStreamResponseBody(enable bool) *Client { |
| 697 | c.transport.SetStreamResponseBody(enable) |
| 698 | return c |
| 699 | } |
| 700 | |
| 701 | // SetCookieJar sets the cookie jar for the client. |
| 702 | func (c *Client) SetCookieJar(cookieJar *CookieJar) *Client { |
nothing calls this directly
no test coverage detected