Enum actix_http::body::Body [−][src]
pub enum Body {
None,
Empty,
Bytes(Bytes),
Message(Box<dyn MessageBody + Unpin>),
}Expand description
Represents various types of http message body.
Variants
Empty response. Content-Length header is not set.
Zero sized response body. Content-Length header is set to 0.
Specific response body.
Tuple Fields of Bytes
0: BytesGeneric message body.
Tuple Fields of Message
0: Box<dyn MessageBody + Unpin>Implementations
Create body from generic message body.
Trait Implementations
Performs the conversion.
Performs the conversion.