pub fn body(mut self, body: impl AsRef<[u8]>) -> Self {
        let body = body.as_ref().to_vec();
        *self.req.body_mut() = body.into();
        self
    }
/// Set the bytes of this request body.
///
/// Default is an empty body.
///
/// # Example
///
/// ```
/// let req = warp::test::request()
///     .body("foo=bar&baz=quux");
/// ```
Set the bytes of this request body.
Default is an empty body.
Set the bytes of this request body . Default is an empty body .
pub fn body(mut self, body: impl AsRef<[u8]>) -> Self {
        let body = body.as_ref().to_vec();
        *self.req.body_mut() = body.into();
        self
    }
pub fn body ( mut self , body : impl AsRef < [ u8 ] > ) -> Self { let body = body . as_ref ( ) . to_vec ( ) ; * self . req . body_mut ( ) = body . into ( ) ; self }
Set the bytes of this request body.
Set the bytes of this request body .
mut self
body
impl AsRef<[u8]>
example
None