pub fn with_typed_header<TTypedHeader>(mut self, header: TTypedHeader) -> Self
    where
        TTypedHeader: TypedHeader,
    {
        self.typed_header(header);
        self
    }
/// Consumes the builder and sets a typed header as part of the request.
///
/// By default, the request contains no headers.
///
/// # Examples
///
/// ```
/// use std::convert::TryFrom;
///
/// use rtsp::header::types::ContentLength;
/// 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_typed_header::<ContentLength>(ContentLength::default())
///     .with_body("")
///     .build()
///     .unwrap();
/// ```
Consumes the builder and sets a typed header as part of the request.
By default, the request contains no headers.
Consumes the builder and sets a typed header as part of the request . By default the request contains no headers .
pub fn with_typed_header<TTypedHeader>(mut self, header: TTypedHeader) -> Self
    where
        TTypedHeader: TypedHeader,
    {
        self.typed_header(header);
        self
    }
pub fn with_typed_header < TTypedHeader > ( mut self , header : TTypedHeader ) -> Self where TTypedHeader : TypedHeader , { self . typed_header ( header ) ; self }
Consumes the builder and sets a typed header as part of the request.
Consumes the builder and sets a typed header as part of the request .
mut self
header
TTypedHeader
mut self
header
TTypedHeader
examples
```
use std::convert::TryFrom.

use rtsp::header::types::ContentLength;
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_typed_header::(ContentLength::default())
.with_body("")
.build()
.unwrap();
```
` ` ` use std :: convert :: TryFrom . use rtsp :: header :: types :: ContentLength ; 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_typed_header :: ( ContentLength :: default () ) . with_body ( " " ) . build () . unwrap () ; ` ` `