mirror of
https://github.com/tokio-rs/axum.git
synced 2025-04-26 13:56:22 +02:00
Expose hyper's http2 feature flag (#279)
* Order features alphabetically … in Cargo.toml and crate docs. * Improve ws feature docs * Expose hyper's http2 feature flag
This commit is contained in:
parent
4c5068c01f
commit
e41bac7f39
2 changed files with 4 additions and 2 deletions
|
@ -16,9 +16,10 @@ members = ["examples/*"]
|
|||
|
||||
[features]
|
||||
default = ["tower-log"]
|
||||
ws = ["tokio-tungstenite", "sha-1", "base64"]
|
||||
http2 = ["hyper/http2"]
|
||||
multipart = ["multer", "mime"]
|
||||
tower-log = ["tower/log"]
|
||||
ws = ["tokio-tungstenite", "sha-1", "base64"]
|
||||
|
||||
[dependencies]
|
||||
async-trait = "0.1"
|
||||
|
|
|
@ -938,10 +938,11 @@
|
|||
//!
|
||||
//! The following optional features are available:
|
||||
//!
|
||||
//! - `ws`: Enables WebSockets support.
|
||||
//! - `headers`: Enables extracting typed headers via [`extract::TypedHeader`].
|
||||
//! - `http2`: Enables hyper's `http2` feature.
|
||||
//! - `multipart`: Enables parsing `multipart/form-data` requests with [`extract::Multipart`].
|
||||
//! - `tower-log`: Enables `tower`'s `log` feature. Enabled by default.
|
||||
//! - `ws`: Enables WebSockets support via [`extract::ws`].
|
||||
//!
|
||||
//! [`tower`]: https://crates.io/crates/tower
|
||||
//! [`tower-http`]: https://crates.io/crates/tower-http
|
||||
|
|
Loading…
Add table
Reference in a new issue