pub fn host_is_identical(&self, request_url: &Url) -> bool {
        if let Some(url_host) = request_url.host_str() {
            match *self {
                CookieDomain::HostOnly(ref host) => host == url_host,
                CookieDomain::Suffix(ref suffix) => suffix == url_host,
                CookieDomain::NotPresent | CookieDomain::Empty => false, // nothing can match the Empty case
            }
        } else {
            false // not a matchable scheme
        }
    }
/// Tests if the given `url::Url` has a request-host identical to the domain attribute
Tests if the given `url::Url` has a request-host identical to the domain attribute
Tests if the given ` url :: Url ` has a request - host identical to the domain attribute
pub fn host_is_identical(&self, request_url: &Url) -> bool {
        if let Some(url_host) = request_url.host_str() {
            match *self {
                CookieDomain::HostOnly(ref host) => host == url_host,
                CookieDomain::Suffix(ref suffix) => suffix == url_host,
                CookieDomain::NotPresent | CookieDomain::Empty => false, // nothing can match the Empty case
            }
        } else {
            false // not a matchable scheme
        }
    }
pub fn host_is_identical ( & self , request_url : & Url ) -> bool { if let Some ( url_host ) = request_url . host_str ( ) { match * self { CookieDomain :: HostOnly ( ref host ) => host == url_host , CookieDomain :: Suffix ( ref suffix ) => suffix == url_host , CookieDomain :: NotPresent | CookieDomain :: Empty => false , // nothing can match the Empty case } } else { false // not a matchable scheme } }
Tests if the given `url::Url` has a request-host identical to the domain attribute
Tests if the given ` url :: Url ` has a request - host identical to the domain attribute
&self
request_url
&Url