Function jsonrpc_server_utils::hosts::is_host_valid  [−][src]
pub fn is_host_valid(
host: Option<&str>,
allowed_hosts: &Option<Vec<Host>>
) -> bool
Returns true when Host header is whitelisted in allowed_hosts.
pub fn is_host_valid(
host: Option<&str>,
allowed_hosts: &Option<Vec<Host>>
) -> bool
Returns true when Host header is whitelisted in allowed_hosts.