Enum rotor_http::server::BodyKind [] [src]

pub enum BodyKind {
    Fixed(u64),
    Chunked,
    Upgrade,
}

The expected type of request body, if any.

After the header fields are parsed the request body kind is decided. This information can be useful for servers to decide if a request should be accepted and if the request should be received in buffered or progressive mode.

Variants

Fixed number of bytes body.

A value of Fixed(0) is used for requests without body.

The message body is transmitted as several chunks.

The size of the message body is not yet known.

Reserved for future usage.

Trait Implementations

impl Debug for BodyKind
[src]

Formats the value using the given formatter.

impl Copy for BodyKind
[src]

impl Clone for BodyKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for BodyKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for BodyKind
[src]