Make gzip an optional feature (default off)

This commit is contained in:
Sean McArthur
2019-09-19 11:11:24 -07:00
parent f4100e4148
commit f71227d968
10 changed files with 289 additions and 195 deletions

View File

@@ -67,6 +67,7 @@ impl Body {
}
}
#[cfg(any(feature = "blocking", feature = "gzip",))]
pub(crate) fn empty() -> Body {
Body::wrap(hyper::Body::empty())
}