13 #ifndef __PROCESS_FIREWALL_HPP__
14 #define __PROCESS_FIREWALL_HPP__
95 #endif // __PROCESS_FIREWALL_HPP__
Definition: option.hpp:28
Future< Response > request(const Request &request, bool streamedResponse=false)
Asynchronously sends an HTTP request to the process and returns the HTTP response once the entire res...
URL url
Definition: http.hpp:529
virtual Option< http::Response > apply(const network::inet::Socket &, const http::Request &request)
Verify rule by applying it to an HTTP request and its underlying socket connection.
Definition: firewall.hpp:77
bool contains(const Elem &elem) const
Definition: hashset.hpp:102
virtual ~DisabledEndpointsFirewallRule()
Definition: firewall.hpp:75
std::string path
Definition: http.hpp:175
FirewallRule()
Definition: firewall.hpp:43
virtual ~FirewallRule()
Definition: firewall.hpp:44
Result< Process > process(pid_t pid)
Definition: freebsd.hpp:30
DisabledEndpointsFirewallRule(const hashset< std::string > &_paths)
A 'FirewallRule' describes an interface which provides control over incoming HTTP requests while also...
Definition: firewall.hpp:40
Simple firewall rule to forbid any HTTP request to a path in the provided list of endpoints...
Definition: firewall.hpp:70
Try< Netlink< struct nl_sock > > socket(int protocol=NETLINK_ROUTE)
Definition: internal.hpp:91
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.