Closed seanmonstar closed 2 years ago
It was noted that the FFI body type makes use of Body::empty(). I think there's 2 ways we can fix that:
Body::empty()
pub(crate) fn ffi() -> Body
Empty
cc @Xuanwo
Add a pub(crate) fn ffi() -> Body that just starts the type like this
Let me give this a try!
It was noted that the FFI body type makes use of
Body::empty()
. I think there's 2 ways we can fix that:pub(crate) fn ffi() -> Body
that just starts the type like this: https://github.com/hyperium/hyper/blob/509672aada0af68a91d963e69828c6e31c44cb7b/src/body/body.rs#L240Empty
variant. I don't think I like this option as much, but welcome feedback.