pub fn new(uri: hyper::Uri, method: hyper::Method) -> Self {
        //Workaround to get just Parts as it is more  convenient
        //to modify Parts as you can take out elements
        let mut temp = hyper::Request::<()>::new(());
        *temp.method_mut() = method;
        *temp.uri_mut() = uri;

        let (parts, _) = temp.into_parts();

        Self {
            parts,
            cookies: None
        }
    }
///Starts process of creating request.
Starts process of creating request.
Starts process of creating request .
pub fn new(uri: hyper::Uri, method: hyper::Method) -> Self {
        //Workaround to get just Parts as it is more  convenient
        //to modify Parts as you can take out elements
        let mut temp = hyper::Request::<()>::new(());
        *temp.method_mut() = method;
        *temp.uri_mut() = uri;
        let (parts, _) = temp.into_parts();
        Self {
            parts,
            cookies: None
        }
    }
pub fn new ( uri : hyper :: Uri , method : hyper :: Method ) -> Self { //Workaround to get just Parts as it is more  convenient //to modify Parts as you can take out elements let mut temp = hyper :: Request :: < ( ) > :: new ( ( ) ) ; * temp . method_mut ( ) = method ; * temp . uri_mut ( ) = uri ; let ( parts , _ ) = temp . into_parts ( ) ; Self { parts , cookies : None } }
Starts process of creating request.
Starts process of creating request .
uri
hyper::Uri
method
hyper::Method