Enum actix_web::Body
[−]
[src]
pub enum Body {
Empty,
Binary(BinaryBody),
Length(u64),
Streaming,
Upgrade,
}Represents various types of http message body.
Variants
EmptyEmpty response. Content-Length header is set to 0
Binary(BinaryBody)Specific response body.
Length(u64)Streaming response body with specified length.
StreamingUnspecified streaming response. Developer is responsible for setting
right Content-Length or Transfer-Encoding headers.
UpgradeUpgrade connection.
Methods
impl Body[src]
fn has_body(&self) -> bool[src]
Does this body have payload.
fn from_slice(s: &[u8]) -> Body[src]
Create body from slice (copy)
Trait Implementations
impl Debug for Body[src]
impl<T> From<T> for Body where
T: Into<BinaryBody>, [src]
T: Into<BinaryBody>,