pub(crate) fn as_bytes(&self) -> Vec<u8> {
        let mut head = self.get_http_head().into_bytes();
        if let Some(body) = &self.config.body {
            head.extend(body);
        }
        head
    }
/// Returns the HTTP request as bytes, ready to be sent to
/// the server.
Returns the HTTP request as bytes, ready to be sent to
the server.
Returns the HTTP request as bytes ready to be sent to the server .
pub(crate) fn as_bytes(&self) -> Vec<u8> {
        let mut head = self.get_http_head().into_bytes();
        if let Some(body) = &self.config.body {
            head.extend(body);
        }
        head
    }
pub ( crate ) fn as_bytes ( & self ) -> Vec < u8 > { let mut head = self . get_http_head ( ) . into_bytes ( ) ; if let Some ( body ) = & self . config . body { head . extend ( body ) ; } head }
Returns the HTTP request as bytes, ready to be sent to
the server.
Returns the HTTP request as bytes ready to be sent to the server .
&self
&self