From 4969b46a316888950bd1910d7ef123883ab6c9f3 Mon Sep 17 00:00:00 2001
From: Joe Tsai io.EOF
.
+io.EOF
.
@@ -532,6 +532,21 @@ that applies Huffman but not Lempel-Ziv encoding.
but at the cost of producing compressed outputs that are 20-40% larger than those
generated by the new BestSpeed
.
+It is important to note that both
+BestSpeed
and HuffmanOnly
produce a compressed output that is RFC 1951 compliant.
+In other words, any valid DEFLATE decompressor will continue to be able to decompress these outputs.
+
+Lastly, there is a minor change to the decompressor's implementation of
+io.Reader
. In previous versions,
+the decompressor deferred reporting
+io.EOF
until exactly no more bytes could be read.
+Now, it reports
+io.EOF
more eagerly when reading the last set of bytes.
+
req.Response
.
Since Go 1, the default behavior of the HTTP client is
to request server-side compression
using the Accept-Encoding
request header
-and then to uncompress the response body transparently,
+and then to decompress the response body transparently,
and this behavior is adjustable using the
Transport
's DisableCompression
field.
In Go 1.7, to aid the implementation of HTTP proxies, the
Response
's new
Uncompressed
field reports whether
-this transparent uncompression took place.
+this transparent decompression took place.
@@ -1090,7 +1105,7 @@ In previous releases of Go, if
were asked for zero bytes with no data remaining, it would
return a count of 0 and no error.
Now it returns a count of 0 and the error
-io.EOF
.
+io.EOF
.
-- 2.50.0