Enable 'gzip' by default
This commit is contained in:
@@ -15,7 +15,7 @@ edition = "2018"
|
|||||||
features = ["tls", "native-tls", "json", "charset", "cookies", "socks-proxy"]
|
features = ["tls", "native-tls", "json", "charset", "cookies", "socks-proxy"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["tls"]
|
default = ["tls", "gzip"]
|
||||||
tls = ["webpki", "webpki-roots", "rustls"]
|
tls = ["webpki", "webpki-roots", "rustls"]
|
||||||
native-certs = ["rustls-native-certs"]
|
native-certs = ["rustls-native-certs"]
|
||||||
json = ["serde", "serde_json"]
|
json = ["serde", "serde_json"]
|
||||||
|
|||||||
@@ -113,8 +113,8 @@ You can control them when including ureq as a dependency.
|
|||||||
TLS implementation, `native-tls` is never picked up as a default or used by the crate level
|
TLS implementation, `native-tls` is never picked up as a default or used by the crate level
|
||||||
convenience calls (`ureq::get` etc) – it must be configured on the agent. The `native-certs` feature
|
convenience calls (`ureq::get` etc) – it must be configured on the agent. The `native-certs` feature
|
||||||
does nothing for `native-tls`.
|
does nothing for `native-tls`.
|
||||||
* `gzip` enables automatically requesting gzip-compressed responses and decompressing them.
|
* `gzip` enables requests of gzip-compressed responses and decompresses them. This is enabled by default.
|
||||||
* `brotli` enables automatically requesting Brotli-compressed responses and decompressing them.
|
* `brotli` enables requests brotli-compressed responses and decompresses them.
|
||||||
|
|
||||||
## Plain requests
|
## Plain requests
|
||||||
|
|
||||||
|
|||||||
@@ -133,8 +133,8 @@
|
|||||||
//! TLS implementation, `native-tls` is never picked up as a default or used by the crate level
|
//! TLS implementation, `native-tls` is never picked up as a default or used by the crate level
|
||||||
//! convenience calls (`ureq::get` etc) – it must be configured on the agent. The `native-certs` feature
|
//! convenience calls (`ureq::get` etc) – it must be configured on the agent. The `native-certs` feature
|
||||||
//! does nothing for `native-tls`.
|
//! does nothing for `native-tls`.
|
||||||
//! * `gzip` enables automatically requesting gzip-compressed responses and decompressing them.
|
//! * `gzip` enables requests of gzip-compressed responses and decompresses them. This is enabled by default.
|
||||||
//! * `brotli` enables automatically requesting Brotli-compressed responses and decompressing them.
|
//! * `brotli` enables requests brotli-compressed responses and decompresses them.
|
||||||
//!
|
//!
|
||||||
//! # Plain requests
|
//! # Plain requests
|
||||||
//!
|
//!
|
||||||
|
|||||||
Reference in New Issue
Block a user