Function jsonrpc_http_server::is_host_allowed[][src]

pub fn is_host_allowed(
    request: &Request<Body>,
    allowed_hosts: &Option<Vec<Host>>
) -> bool
Expand description

Returns true if Host header in request matches a list of allowed hosts.