BodyGunzip returns un-gzipped body data. This method may be used if the response header contains 'Content-Encoding: gzip' for reading un-gzipped body. Use Body for reading gzipped response body.
()
| 510 | // 'Content-Encoding: gzip' for reading un-gzipped body. |
| 511 | // Use Body for reading gzipped response body. |
| 512 | func (resp *Response) BodyGunzip() ([]byte, error) { |
| 513 | return resp.BodyGunzipWithLimit(0) |
| 514 | } |
| 515 | |
| 516 | // BodyGunzipWithLimit returns un-gzipped body data and limits the size |
| 517 | // of uncompressed body data to maxBodySize bytes. |