Cargo Features
ehttp has no features set by default.
[dependencies]
ehttp = { version = "0.5.0", features = ["json", "multipart", "native-async", "streaming"] }
- json
-
Support json fetch
Enables serde and serde_json
serde:
Json request
- multipart
-
Support multipart fetch
Enables getrandom, mime, mime_guess, and rand
mime:
Multipart request
Affects
ehttp::multipart
… - native-async = async-channel
-
Support
fetch_async
on nativeAffects
ehttp::fetch_async
… - streaming
-
Support streaming fetch
Enables futures-util and wasm-streams
Affects
ehttp::streaming
,web::fetch_async_streaming
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- async-channel not wasm32 native-async?