Enum actix_web::Body [] [src]

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

Represents various types of http message body.

Variants

Empty response. Content-Length header is set to 0

Specific response body. Content-Length header is set to length of bytes.

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.

Trait Implementations

impl Debug for Body
[src]

[src]

Formats the value using the given formatter.