MCPcopy Index your code
hub / github.com/imroc/req / CompressReader

Interface CompressReader

internal/compress/reader.go:5–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import "io"
4
5type CompressReader interface {
6 io.ReadCloser
7 GetUnderlyingBody() io.ReadCloser
8 SetUnderlyingBody(body io.ReadCloser)
9}
10
11func NewCompressReader(body io.ReadCloser, contentEncoding string) CompressReader {
12 switch contentEncoding {

Callers 2

wrapResponseBodyMethod · 0.65
wrapResponseBodyMethod · 0.65

Implementers 4

DeflateReaderinternal/compress/deflate_reader.go
GzipReaderinternal/compress/gzip_reader.go
BrotliReaderinternal/compress/brotli_reader.go
ZstdReaderinternal/compress/zstd_reader.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…