Enum actix_web::Body [] [src]

pub enum Body {
    Empty,
    Binary(BinaryBody),
    Length(u64),
    Streaming,
    Upgrade,
}

Represents various types of http message body.

Variants

Empty response. Content-Length header is set to 0

Specific response body.

Streaming response body with specified length.

Unspecified streaming response. Developer is responsible for setting right Content-Length or Transfer-Encoding headers.

Upgrade connection.

Methods

impl Body
[src]

[src]

Does this body have payload.

[src]

Create body from slice (copy)

Trait Implementations

impl Debug for Body
[src]

[src]

Formats the value using the given formatter.

impl<T> From<T> for Body where
    T: Into<BinaryBody>, 
[src]

[src]

Performs the conversion.