/// Try to parse a buffer of bytes into the Request,
/// except use an uninitialized slice of `Header`s.
///
/// For more information, see `parse`
Try to parse a buffer of bytes into the Request,
except use an uninitialized slice of `Header`s.

For more information, see `parse`
Try to parse a buffer of bytes into the Request except use an uninitialized slice of ` Header ` s . For more information see ` parse `
pub fn parse_with_uninit_headers(
        &mut self,
        buf: &'b [u8],
        mut headers: &'h mut [MaybeUninit<Header<'b>>],
    ) -> Result<usize> {
    let orig_len = buf.len();
        let mut bytes = Bytes::new(buf);
        complete!(skip_empty_lines(&mut bytes));
        self.method = Some(complete!(parse_token(&mut bytes)));
        self.path = Some(complete!(parse_uri(&mut bytes)));
        self.version = Some(complete!(parse_version(&mut bytes)));
        newline!(bytes);
        let len = orig_len - bytes.len();
        let headers_len = complete!(parse_headers_iter_uninit(
            &mut headers,
            &mut bytes,
            &ParserConfig::default(),
        ));
        /* SAFETY: see `parse_headers_iter_uninit` guarantees */
        self.headers = unsafe { assume_init_slice(headers) };
        Ok(Status::Complete(len + headers_len))
    }
pub fn parse_with_uninit_headers ( & mut self , buf : & ' b [ u8 ] , mut headers : & ' h mut [ MaybeUninit < Header < ' b > > ] , ) -> Result < usize > { let orig_len = buf . len ( ) ; let mut bytes = Bytes :: new ( buf ) ; complete ! ( skip_empty_lines ( mut bytes ) ) ; self . method = Some ( complete ! ( parse_token ( mut bytes ) ) ) ; self . path = Some ( complete ! ( parse_uri ( mut bytes ) ) ) ; self . version = Some ( complete ! ( parse_version ( mut bytes ) ) ) ; newline ! ( bytes ) ; let len = orig_len - bytes . len ( ) ; let headers_len = complete ! ( parse_headers_iter_uninit ( mut headers mut bytes ParserConfig default ( ) ) ) ; /* SAFETY: see `parse_headers_iter_uninit` guarantees */ self . headers = unsafe { assume_init_slice ( headers ) } ; Ok ( Status :: Complete ( len + headers_len ) ) }
Try to parse a buffer of bytes into the Request,
except use an uninitialized slice of `Header`s.
Try to parse a buffer of bytes into the Request except use an uninitialized slice of ` Header ` s .
&mut self
buf
&'b [u8]
headers
&'h mut [MaybeUninit<Header<'b>>]