pub fn with_body<TNewBody>(self, body: TNewBody) -> Builder<TNewBody> {
        Builder {
            body: Some(body),
            headers: self.headers,
            method: self.method,
            uri: self.uri,
            version: self.version,
        }
    }
/// Consumes the builder and sets the body part of the request.
///
/// # Errors
///
/// This does not have a default value and, as a result, it must be specified before
/// [`Builder::build`] is called.
///
/// # Examples
///
/// ```
/// use rtsp::method::Method;
/// use rtsp::request::Request;
/// use rtsp::uri::request::URI;
///
/// let request = Request::<()>::builder()
///     .with_method(Method::Setup)
///     .with_uri(URI::asterisk())
///     .with_body("")
///     .build()
///     .unwrap();
/// ```
Consumes the builder and sets the body part of the request.
Consumes the builder and sets the body part of the request .
pub fn with_body<TNewBody>(self, body: TNewBody) -> Builder<TNewBody> {
        Builder {
            body: Some(body),
            headers: self.headers,
            method: self.method,
            uri: self.uri,
            version: self.version,
        }
    }
pub fn with_body < TNewBody > ( self , body : TNewBody ) -> Builder < TNewBody > { Builder { body : Some ( body ) , headers : self . headers , method : self . method , uri : self . uri , version : self . version , } }
Consumes the builder and sets the body part of the request.
Consumes the builder and sets the body part of the request .
self
body
TNewBody
self
body
TNewBody
errors
This does not have a default value and, as a result, it must be specified before
[`Builder::build`] is called.
This does not have a default value and as a result it must be specified before [ ` Builder :: build ` ] is called .
examples
```
use rtsp::method::Method;
use rtsp::request::Request;
use rtsp::uri::request::URI.

let request = Request::<()>::builder()
.with_method(Method::Setup)
.with_uri(URI::asterisk())
.with_body("")
.build()
.unwrap();
```
` ` ` use rtsp :: method :: Method ; use rtsp :: request :: Request ; use rtsp :: uri :: request :: URI . let request = Request :: < () > :: builder () . with_method ( Method :: Setup ) . with_uri ( URI :: asterisk () ) . with_body ( " " ) . build () . unwrap () ; ` ` `