pub struct ChunkedBody {
pub body: Vec<u8>,
pub required_headers: Vec<(String, String)>,
}Expand description
Result of chunked transfer-encoding split.
This strategy is ONLY semantically correct when the body is sent as the body
of an HTTP request with Transfer-Encoding: chunked.
Fields§
§body: Vec<u8>The chunked-encoded body as raw bytes.
required_headers: Vec<(String, String)>Required headers that must accompany this body.
Trait Implementations§
Source§impl Clone for ChunkedBody
impl Clone for ChunkedBody
Source§fn clone(&self) -> ChunkedBody
fn clone(&self) -> ChunkedBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChunkedBody
impl Debug for ChunkedBody
Source§impl PartialEq for ChunkedBody
impl PartialEq for ChunkedBody
Source§fn eq(&self, other: &ChunkedBody) -> bool
fn eq(&self, other: &ChunkedBody) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ChunkedBody
impl StructuralPartialEq for ChunkedBody
Auto Trait Implementations§
impl Freeze for ChunkedBody
impl RefUnwindSafe for ChunkedBody
impl Send for ChunkedBody
impl Sync for ChunkedBody
impl Unpin for ChunkedBody
impl UnsafeUnpin for ChunkedBody
impl UnwindSafe for ChunkedBody
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.