View definition

(http2Transport).DisableCompression

Defined in github.com/golang/go/src/net/http/h2_bundle.go

Description

DisableCompression, if true, prevents the Transport from requesting compression with an "Accept-Encoding: gzip" request header when the Request contains no existing Accept-Encoding value. If the Transport requests gzip on its own and gets a gzipped response, it's transparently decoded in the Response.Body. However, if the user explicitly requested gzip it is not automatically uncompressed.

DisableCompression is referenced in 1 repository

github.com/golang/go