pub enum Http1BodyFraming {
None,
ContentLength(usize),
Chunked,
CloseDelimited,
Tunnel,
}Expand description
HTTP/1 body framing selected by RFC 9112.
Variants§
None
The message has no body.
ContentLength(usize)
The body has the encoded fixed length.
Chunked
The body uses chunked transfer coding.
CloseDelimited
A response body ends when the connection closes.
Tunnel
A successful CONNECT response switches to tunnel data.
Trait Implementations§
Source§impl Clone for Http1BodyFraming
impl Clone for Http1BodyFraming
impl Copy for Http1BodyFraming
Source§impl Debug for Http1BodyFraming
impl Debug for Http1BodyFraming
impl Eq for Http1BodyFraming
Source§impl PartialEq for Http1BodyFraming
impl PartialEq for Http1BodyFraming
impl StructuralPartialEq for Http1BodyFraming
Auto Trait Implementations§
impl Freeze for Http1BodyFraming
impl RefUnwindSafe for Http1BodyFraming
impl Send for Http1BodyFraming
impl Sync for Http1BodyFraming
impl Unpin for Http1BodyFraming
impl UnsafeUnpin for Http1BodyFraming
impl UnwindSafe for Http1BodyFraming
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