pub struct Body { /* private fields */ }
Implementations§
Source§impl Body
impl Body
pub fn new() -> Self
pub fn bytes(&self) -> &Vec<u8> ⓘ
pub fn length(&self) -> usize
pub fn length_limit(&self) -> Option<usize>
pub fn has_length_limit(&self) -> bool
pub fn set_length_limit(&mut self, limit: usize)
pub fn remove_length_limit(&mut self)
pub async fn read<I>( &mut self, stream: &mut I, res: &HashMap<String, String>, ) -> Result<usize, Error>
pub async fn read_chunked<I>(&mut self, stream: &mut I) -> Result<usize, Error>
pub async fn read_sized<I>( &mut self, stream: &mut I, length: usize, ) -> Result<usize, Error>
pub async fn write<I>(&mut self, stream: &mut I) -> Result<usize, Error>
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnwindSafe for Body
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