class HTTPInput : public Input {
public:
- HTTPInput(const std::string &url);
+ HTTPInput(const std::string &url, Input::Encoding encoding);
// Serialization/deserialization.
HTTPInput(const InputProto &serialized);
std::string url;
std::string host, port, path;
+ // What the input stream is to be interpreted as (normally Metacube).
+ Input::Encoding encoding;
+
// The HTTP request, with headers and all.
// Only relevant for SENDING_REQUEST.
std::string request;