根据Accept-Encoding决定是否解压响应内容

This commit is contained in:
刘祥超
2021-12-29 10:57:15 +08:00
parent 4ffc619aad
commit 2525cdc061
8 changed files with 127 additions and 9 deletions

View File

@@ -24,6 +24,9 @@ type Reader interface {
// ReadBody 读取Body
ReadBody(buf []byte, callback ReaderFunc) error
// Read 实现io.Reader接口
Read(buf []byte) (int, error)
// ReadBodyRange 读取某个范围内的Body
ReadBodyRange(buf []byte, start int64, end int64, callback ReaderFunc) error