You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And setting the body requires that it can be at least converted into a hyper::Body:
pub fn set_body<B: Into<hyper::Body>>(&mut self, body: B) {
self.inner.set_body(body.into());
}
The body could possibly be more generic, as per the hyper crate which would allow such things as providing a Stream directly to the body, simplifying implementation for more tricky things (like streaming files from disk).
The text was updated successfully, but these errors were encountered:
Following from hyperium/hyper#1328
Currently the type signature of the shio::Response is heavily coupled to hyper::Body:
And setting the body requires that it can be at least converted into a hyper::Body:
The body could possibly be more generic, as per the hyper crate which would allow such things as providing a Stream directly to the body, simplifying implementation for more tricky things (like streaming files from disk).
The text was updated successfully, but these errors were encountered: