Enum actix_http::body::BodySize [−][src]
pub enum BodySize { None, Empty, Sized(u64), Stream, }
Expand description
Body size hint.
Variants
Absence of body can be assumed from method or status code.
Will skip writing Content-Length header.
Zero size body.
Will write Content-Length: 0
header.
Sized(u64)
Known size body.
Will write Content-Length: N
header. Sized(0)
is treated the same as Empty
.
Unknown size body.
Will not write Content-Length header. Can be used with chunked Transfer-Encoding.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BodySize
impl UnwindSafe for BodySize
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V