[−][src]Function jsonrpc_http_server::is_host_allowed
pub fn is_host_allowed(
request: &Request<Body>,
allowed_hosts: &Option<Vec<Host>>
) -> bool
Returns true
if Host header in request matches a list of allowed hosts.
pub fn is_host_allowed(
request: &Request<Body>,
allowed_hosts: &Option<Vec<Host>>
) -> bool
Returns true
if Host header in request matches a list of allowed hosts.