View definition

(Transport).DisableCompression

Defined in github.com/golang/go/src/net/http/transport.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 124 repositories

github.com/golang/go github.com/hprose/hprose-go github.com/alphagov/cdn-acceptance-tests

...