pub fn name(&self) -> &'static str {
        match *self {
            Protocol::Http => "http",
            #[cfg(feature = "ssl")]
            Protocol::Https { .. } => "https"
        }
    }
/// Return the name used for this protocol in a URI's scheme part.
Return the name used for this protocol in a URI's scheme part.
Return the name used for this protocol in a URI ' s scheme part .
pub fn name(&self) -> &'static str {
        match *self {
            Protocol::Http => "http",
            #[cfg(feature = "ssl")]
            Protocol::Https { .. } => "https"
        }
    }
pub fn name ( & self ) -> & ' static str { match * self { Protocol :: Http => " " , # [ cfg ( feature " " ) ] Protocol :: Https { .. } => " " } }
Return the name used for this protocol in a URI's scheme part.
Return the name used for this protocol in a URI ' s scheme part .
&self