class InputProto;
+// Despite the name, covers input over both HTTP and pipes, both typically
+// wrapped in Metacube.
class HTTPInput : public Input {
public:
HTTPInput(const std::string &url, Input::Encoding encoding);
// Open a socket that connects to the given host and port. Does DNS resolving.
int lookup_and_connect(const std::string &host, const std::string &port);
+ // Open a child process with the given command line (given to /bin/sh).
+ // Returns a pipe to its standard output.
+ int open_child_process(const std::string &cmdline);
+
// Parses a HTTP response. Returns false if it not a 200.
bool parse_response(const std::string &response);