Cargo Features
[dependencies]
client-util = { version = "0.1.1", default-features = false, features = ["futures-util", "futures-core", "hyper-rustls", "rustls", "hyper", "hyper-util", "serde", "serde_json", "serde_urlencoded", "base64", "client-hyper", "client-hyper-rustls", "encoding_rs", "stream", "json", "query", "multipart", "auth", "percent-encoding", "form", "decompression-all", "decompression-deflate", "decompression-gzip", "decompression-br", "decompression-zstd", "charset", "rt-tokio", "full"] }
- default = client-hyper, client-hyper-rustls, decompression-br, decompression-deflate, decompression-gzip, json, query, rt-tokio, stream
-
These default features are set whenever
client-util
is added without
somewhere in the dependency tree.default-features = false - futures-util stream
-
Enables futures-util
- futures-core stream
-
Enables futures-core
Stream
- hyper-rustls client-hyper-rustls
-
Enables hyper-rustls
TLS support
- rustls client-hyper-rustls
-
Enables rustls
- hyper client-hyper
-
Enables hyper
Hyper client
Affects
response::ResponseExt.hyper_upgrade
… - hyper-util client-hyper
-
Enables hyper-util
- serde serde_json? serde_urlencoded?
-
Enables serde
Serde support
- serde_json json = serde
-
Enables serde_json
Json
- serde_urlencoded form? query = serde
-
Enables serde_urlencoded
Query
- base64 auth?
-
Enables base64
Auth
- client-hyper default full? = hyper, hyper-util
-
Affects
client::hyper
… - client-hyper-rustls default full? = hyper-rustls, rustls
- encoding_rs charset?
-
Enables encoding_rs
- stream default multipart? = futures-core, futures-util
-
Stream support
Affects
body::stream
,request::RequestExt.stream
… - json default full? = serde_json
-
json support
Affects
request::RequestExt.json
,request::RequestBuilderExt.json
,response::ResponseExt.json
… - query default full? = serde_urlencoded
-
query support
Affects
request::RequestExt.query
,request::RequestBuilderExt.query
… - multipart full? = percent-encoding, stream
-
multipart support
Affects
request::RequestExt.multipart
,request::RequestBuilderExt.multipart
… - auth full? = base64
-
basic auth support
Affects
request::RequestExt.basic_auth
,request::RequestExt.bearer_auth
,request::RequestBuilderExt.basic_auth
,request::RequestBuilderExt.bearer_auth
,util::basic_auth
,util::bearer_auth
… - percent-encoding multipart?
-
Enables percent-encoding
Form
- form full? = serde_urlencoded
-
Affects
request::RequestExt.form
,request::RequestBuilderExt.form
… - decompression-all = decompression-br, decompression-deflate, decompression-gzip, decompression-zstd
-
decompression support
- decompression-deflate default decompression-all?
-
Enables decompression-deflate of tower-http ^0.5
Extension layer
- decompression-gzip default decompression-all?
-
Enables decompression-gzip of tower-http ^0.5
- decompression-br default decompression-all?
-
Enables decompression-br of tower-http ^0.5
- decompression-zstd decompression-all?
-
Enables decompression-zstd of tower-http ^0.5
- charset = encoding_rs
-
charset decoding
- rt-tokio default
-
Runtime
Enables tower-http ^0.5
Affects
request::RequestExt.send_timeout
… - full = auth, client-hyper, client-hyper-rustls, form, json, multipart, query