pub fn typed_header<TTypedHeader>(&mut self, header: TTypedHeader) -> &mut Self
    where
        TTypedHeader: TypedHeader,
    {
        self.headers.typed_insert(header);
        self
    }
/// Sets a typed header for this 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 mut builder = Request::builder();
/// builder
///     .method(Method::Setup)
///     .uri(URI::try_from("rtsp://server.com").unwrap())
///     .typed_header(ContentLength::try_from(5).unwrap())
///     .body(());
/// let request = builder.build().unwrap();
/// ```
Sets a typed header for this request.
By default, the request contains no headers.
Sets a typed header for this request . By default the request contains no headers .
pub fn typed_header<TTypedHeader>(&mut self, header: TTypedHeader) -> &mut Self
    where
        TTypedHeader: TypedHeader,
    {
        self.headers.typed_insert(header);
        self
    }
pub fn typed_header < TTypedHeader > ( & mut self , header : TTypedHeader ) -> & mut Self where TTypedHeader : TypedHeader , { self . headers . typed_insert ( header ) ; self }
Sets a typed header for this request.
Sets a typed header for this 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 mut builder = Request::builder();
builder
.method(Method::Setup)
.uri(URI::try_from("rtsp://server.com").unwrap())
.typed_header(ContentLength::try_from(5).unwrap())
.body(());
let request = builder.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 mut builder = Request :: builder () ; builder . method ( Method :: Setup ) . uri ( URI :: try_from ( " rtsp : // server . com " ) . unwrap () ) . typed_header ( ContentLength :: try_from ( 5 ) . unwrap () ) . body (( )) ; let request = builder . build () . unwrap () ; ` ` `