pub enum HttpBody {
Bytes(Bytes),
Stream(ByteStream),
}Expand description
An encoded HTTP body. Content type and encoding belong to the HTTP headers. Both JSON and multipart can arrive buffered or streamed.
Variants§
Bytes(Bytes)
Stream(ByteStream)
Trait Implementations§
Source§impl DeclaredFields for HttpBody
impl DeclaredFields for HttpBody
fn into_declared(self) -> Self
Auto Trait Implementations§
impl !Freeze for HttpBody
impl !RefUnwindSafe for HttpBody
impl !Sync for HttpBody
impl !UnwindSafe for HttpBody
impl Send for HttpBody
impl Unpin for HttpBody
impl UnsafeUnpin for HttpBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more