pub struct Parse;Implementations§
Source§impl Parse
impl Parse
pub fn status_has_no_body(status: StatusCode) -> bool
pub fn head(buf: &[u8], mode: DecodeMode) -> Result<Option<DecodedHead>>
pub fn response(buf: &[u8], mode: DecodeMode) -> Result<Option<Response>>
pub fn response_after_eof(buf: &[u8]) -> Result<Response>
Source§impl Parse
impl Parse
pub fn header_scan(headers: &[Header<'_>]) -> Result<HeaderScan>
pub fn content_length(headers: &[Header<'_>]) -> Result<Option<usize>>
pub fn is_chunked(headers: &[Header<'_>]) -> bool
Auto Trait Implementations§
impl Freeze for Parse
impl RefUnwindSafe for Parse
impl Send for Parse
impl Sync for Parse
impl Unpin for Parse
impl UnsafeUnpin for Parse
impl UnwindSafe for Parse
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