pub fn with_body<TNewBody>(self, body: TNewBody) -> Builder<TNewBody> {
        Builder {
            body: Some(body),
            custom_reason_phrase: self.custom_reason_phrase,
            headers: self.headers,
            status_code: self.status_code,
            version: self.version,
        }
    }
/// Consumes the builder and sets the body part of the response.
///
/// # Errors
///
/// This does not have a default value and, as a result, it must be specified before
/// [`Builder::build`] is called.
///
/// # Examples
///
/// ```
/// use rtsp::response::Response;
///
/// let response = Response::<()>::builder()
///     .with_body("")
///     .build()
///     .unwrap();
/// ```
Consumes the builder and sets the body part of the response.
Consumes the builder and sets the body part of the response .
pub fn with_body<TNewBody>(self, body: TNewBody) -> Builder<TNewBody> {
        Builder {
            body: Some(body),
            custom_reason_phrase: self.custom_reason_phrase,
            headers: self.headers,
            status_code: self.status_code,
            version: self.version,
        }
    }
pub fn with_body < TNewBody > ( self , body : TNewBody ) -> Builder < TNewBody > { Builder { body : Some ( body ) , custom_reason_phrase : self . custom_reason_phrase , headers : self . headers , status_code : self . status_code , version : self . version , } }
Consumes the builder and sets the body part of the response.
Consumes the builder and sets the body part of the response .
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::response::Response.


` ` ` use rtsp :: response :: Response .