/// Create an RTSP request for a given method, path and sequence number.
Create an RTSP request for a given method, path and sequence number.
Create an RTSP request for a given method path and sequence number .
fn create_request(
        &self, 
        method: Method, 
        path: &str, 
        cseq: usize) -> Request {
        let version  = env!("CARGO_PKG_VERSION");
        let uagent   = format!("ArrowClient/{}", version);
        let endpoint = format!("rtsp://{}:{}{}", self.host, self.port, path);
        Request::new(method, &endpoint)
            .add_header("CSeq", cseq)
            .add_header("User-Agent", &uagent)
    }
fn create_request ( & self , method : Method , path : & str , cseq : usize ) -> Request { let version = env ! ( " " ) ; let uagent = format ! ( " " version ) ; let endpoint = format ! ( " " self host self port path ) ; Request :: new ( method , & endpoint ) . add_header ( " " , cseq ) . add_header ( " " , & uagent ) }
Create an RTSP request for a given method, path and sequence number.
Create an RTSP request for a given method path and sequence number .
&self
method
Method
path
&str
cseq
usize