Apache Mesos
Classes | Functions
process::firewall Namespace Reference

Classes

class  FirewallRule
 A 'FirewallRule' describes an interface which provides control over incoming HTTP requests while also taking the underlying connection into account. More...
 
class  DisabledEndpointsFirewallRule
 Simple firewall rule to forbid any HTTP request to a path in the provided list of endpoints. More...
 

Functions

void install (std::vector< Owned< FirewallRule >> &&rules)
 Install a list of firewall rules which are used to forbid incoming HTTP requests. More...
 

Function Documentation

void process::firewall::install ( std::vector< Owned< FirewallRule >> &&  rules)

Install a list of firewall rules which are used to forbid incoming HTTP requests.

The rules will be applied in the provided order to each incoming request. If any rule forbids the request, no more rules are applied and a "403 Forbidden" response will be returned containing the reason from the rule.

NOTE: if a request is forbidden, the request's handler is not notified.

See Also
process::firewall::FirewallRule
Parameters
rulesList of rules which will be applied to all incoming HTTP requests.