/// Function to check if host is present in a list of hosts.
/// Mostly for whitelist and blacklist.
Function to check if host is present in a list of hosts.
Mostly for whitelist and blacklist.
Function to check if host is present in a list of hosts . Mostly for whitelist and blacklist .
fn check_host(&self, required_host: &HashSet<url::Host>, default: bool) -> bool {
        match &self.host {
            Some(x) => required_host.contains(x),
            None => default,
        }
    }
fn check_host ( & self , required_host : & HashSet < url :: Host > , default : bool ) -> bool { match & self . host { Some ( x ) => required_host . contains ( x ) , None => default , } }
Function to check if host is present in a list of hosts.
Function to check if host is present in a list of hosts .
&self
required_host
&HashSet<url::Host>
default
bool