Enum actix_web::dev::Body
[−]
[src]
pub enum Body { Empty, Binary(Bytes), Length(u64), Streaming, Upgrade, }
Represents various types of http message body.
Variants
Empty
Empty 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.
Streaming
Unspecified streaming response. Developer is responsible for setting
right Content-Length
or Transfer-Encoding
headers.
Upgrade
Upgrade connection.