Make the blocking API an optional feature (default off)
This commit is contained in:
		| @@ -60,7 +60,7 @@ impl Decoder { | ||||
|     /// An empty decoder. | ||||
|     /// | ||||
|     /// This decoder will produce a single 0 byte chunk. | ||||
|     #[inline] | ||||
|     #[cfg(feature = "blocking")] | ||||
|     pub(crate) fn empty() -> Decoder { | ||||
|         Decoder { | ||||
|             inner: Inner::PlainText(Body::empty().into_stream()), | ||||
|   | ||||
| @@ -346,6 +346,7 @@ impl Response { | ||||
|     // on the `Response` itself. | ||||
|     // | ||||
|     // This method is just used by the blocking API. | ||||
|     #[cfg(feature = "blocking")] | ||||
|     pub(crate) fn body_mut(&mut self) -> &mut Decoder { | ||||
|         &mut self.body | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user