pub fn form(mut self, body: impl Serialize) -> Result<Self> {
        let form = serde_urlencoded::to_string(body)?;
        self.set_header(headers::ContentType::form_url_encoded());
        *self.inner.body_mut() = Body::from(form);
        Ok(self)
    }
/// Set the body of the response to form data
Set the body of the response to form data
Set the body of the response to form data
pub fn form(mut self, body: impl Serialize) -> Result<Self> {
        let form = serde_urlencoded::to_string(body)?;
        self.set_header(headers::ContentType::form_url_encoded());
        *self.inner.body_mut() = Body::from(form);
        Ok(self)
    }
pub fn form ( mut self , body : impl Serialize ) -> Result < Self > { let form = serde_urlencoded :: to_string ( body ) ? ; self . set_header ( headers :: ContentType :: form_url_encoded ( ) ) ; * self . inner . body_mut ( ) = Body :: from ( form ) ; Ok ( self ) }
Set the body of the response to form data
Set the body of the response to form data
mut self
body
impl Serialize