Enum actix_web::Body
[−]
[src]
pub enum Body {
Empty,
Binary(Bytes),
Length(u64),
Streaming,
Upgrade,
}Represents various types of http message body.
Variants
EmptyEmpty response. Content-Length header is set to 0
Binary(Bytes)Specific response body. Content-Length header is set to length of bytes.
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.