hyper
hyper copied to clipboard
Remove Body's `Once` variant
It was noted that the FFI body type makes use of Body::empty(). I think there's 2 ways we can fix that:
- Add a
pub(crate) fn ffi() -> Bodythat just starts the type like this: https://github.com/hyperium/hyper/blob/509672aada0af68a91d963e69828c6e31c44cb7b/src/body/body.rs#L240 - Or, keep an
Emptyvariant. I don't think I like this option as much, but welcome feedback.
cc @Xuanwo
- Add a
pub(crate) fn ffi() -> Bodythat just starts the type like this
Let me give this a try!