MCPcopy Create free account
hub / github.com/imroc/req / NewGzipReader

Function NewGzipReader

internal/compress/gzip_reader.go:17–19  ·  view source on GitHub ↗
(body io.ReadCloser)

Source from the content-addressed store, hash-verified

15}
16
17func NewGzipReader(body io.ReadCloser) *GzipReader {
18 return &GzipReader{Body: body}
19}
20
21func (gz *GzipReader) Read(p []byte) (n int, err error) {
22 if gz.zerr != nil {

Callers 7

handleResponseMethod · 0.92
ReadResponseMethod · 0.92
TestGzipReaderFunction · 0.85
TestGzipReaderCloseTwiceFunction · 0.85
NewCompressReaderFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestGzipReaderFunction · 0.68
TestGzipReaderCloseTwiceFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…