ReleaseResponse returns the Response object to the pool. Do not use the released Response afterward to avoid data races.
(resp *Response)
| 236 | // ReleaseResponse returns the Response object to the pool. |
| 237 | // Do not use the released Response afterward to avoid data races. |
| 238 | func ReleaseResponse(resp *Response) { |
| 239 | resp.Reset() |
| 240 | responsePool.Put(resp) |
| 241 | } |