enum Kind {
Chunked,
Length(u64),
CloseDelimited,
}
Variants§
Chunked
An Encoder for when Transfer-Encoding includes chunked
.
Length(u64)
An Encoder for when Content-Length is set.
Enforces that the body is not longer than the Content-Length header.
CloseDelimited
An Encoder for when neither Content-Length nor Chunked encoding is set.
This is mostly only used with HTTP/1.0 with a length. This kind requires the connection to be closed when the body is finished.
Trait Implementations§
source§impl PartialEq for Kind
impl PartialEq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more