Cargo Features
volo-http has no features set by default.
[dependencies]
volo-http = { version = "0.3.1", features = ["full", "default-client", "default-server", "http1", "client", "server", "query", "form", "json", "json-utf8-lossy", "cookie", "multipart", "ws", "tls", "rustls", "native-tls", "native-tls-vendored"] }
- full = client, cookie, form, json, multipart, query, server, tls, ws
- default-client = client, json
- default-server = form, json, multipart, query, server
- http1 client? server?
-
Enables http1 of hyper and hyper-util
hyper:
HTTP versions
- client default-client? full? = http1
-
client core
Enables client of hyper and async-broadcast
client optional
service discoverand chrono
stat
and hickory-resolver
dns resolver
Affects
context::client
,error::client
,volo-http::client
,request::ClientRequest
,response::ClientResponse
… - server default-server? full? = http1
-
server core
Enables server of hyper-util and ipnet
=====optional=====
server optional
client ipand matchit
route matching
and scopeguard
defer
and memchr and mime_guess
memchr:
sse
Affects
context::server
,error::server
,volo-http::server
,request::ServerRequest
,response::ServerResponse
,json::serialize_to_writer
… - query default-server? full?
-
Enables serde and serde_urlencoded
serde:
serde and form, query, json
Affects
extract::Query
… - form default-server? full?
-
Enables serde and serde_urlencoded
Affects
extract::Form
… - json default-client? default-server? full? json-utf8-lossy?
-
Affects
body::BodyConversion.into_json
,extract::Json
… - json-utf8-lossy = json
-
json feature
Enables utf8_lossy of sonic-rs
-
Enables cookie and cookie_store
cookie:
cookie support
Affects
client::cookie
,utils::cookie
… - multipart default-server? full?
-
Enables multer
multipart optional
Affects
utils::multipart
… - ws full?
-
Enables tokio-tungstenite ^0.24 and tungstenite ^0.24
tungstenite:
websocket optional
Affects
utils::ws
… - tls full? = rustls
- rustls tls? = __tls
-
Enables rustls of volo and tokio-rustls
tls optional
- native-tls native-tls-vendored? = __tls
-
Enables tokio-native-tls, native-tls of volo
- native-tls-vendored = native-tls
-
Enables native-tls-vendored of volo
- __tls native-tls? rustls?
-
Affects
client::BuilderConfig.disable_tls
…