pub async fn get_request_data<R>( buf: &mut Vec<u8>, con: R, ) -> Result<(), RequestError>where R: AsyncRead + Unpin,
reads the entire request into the provided buffer