Apache Mesos
|
A 'FirewallRule' describes an interface which provides control over incoming HTTP requests while also taking the underlying connection into account. More...
#include <firewall.hpp>
Public Member Functions | |
FirewallRule () | |
virtual | ~FirewallRule () |
virtual Option< http::Response > | apply (const network::inet::Socket &socket, const http::Request &request)=0 |
Verify rule by applying it to an HTTP request and its underlying socket connection. More... | |
A 'FirewallRule' describes an interface which provides control over incoming HTTP requests while also taking the underlying connection into account.
Concrete classes based on this interface must implement the 'apply' method.
Rules can be installed using the free function 'process::firewall::install()' defined in 'process.hpp'.
|
inline |
|
inlinevirtual |
|
pure virtual |
Verify rule by applying it to an HTTP request and its underlying socket connection.
socket | Socket used to deliver the HTTP request. |
request | HTTP request made by the client to libprocess. |
Implemented in process::firewall::DisabledEndpointsFirewallRule.