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(u64)
Fixed number of bytes body.
A value of Fixed(0)
is used for requests without body.
Chunked
The message body is transmitted as several chunks.
The size of the message body is not yet known.
Upgrade
Reserved for future usage.
Trait Implementations
impl Debug for BodyKind
[src]
impl Copy for BodyKind
[src]
impl Clone for BodyKind
[src]
fn clone(&self) -> BodyKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for BodyKind
[src]
fn eq(&self, __arg_0: &BodyKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BodyKind) -> bool
This method tests for !=
.