pub enum Body {
Empty,
Binary(Binary),
Streaming(BodyStream),
Actor(Box<dyn ActorHttpContext>),
}
Expand description
Represents various types of http message body.
Variants
Empty
Empty response. Content-Length
header is set to 0
Binary(Binary)
Specific response body.
Streaming(BodyStream)
Unspecified streaming response. Developer is responsible for setting
right Content-Length
or Transfer-Encoding
headers.
Actor(Box<dyn ActorHttpContext>)
Special body type for actor response.
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Body
impl !Send for Body
impl !Sync for Body
impl Unpin for Body
impl !UnwindSafe for Body
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more