jsonrpc_http_server

Function is_host_allowed

Source
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.