Skip to main content

http_acl_check

Function http_acl_check 

Source
pub fn http_acl_check(
    allow: &[HttpRule],
    deny: &[HttpRule],
    method: &str,
    host: &str,
    path: &str,
) -> bool
Expand description

Evaluate HTTP ACL rules against a request.

  • Block rules are checked first; if any match, return false.
  • Allow rules are checked next; if any match, return true.
  • If allow rules exist but none matched, return false (deny-by-default).
  • If no rules at all, return true (unrestricted).