X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=httpinput.h;h=823204d5b1cff4c264d348b70a731a93e29f1949;hp=6b0c87512dffee116dea7c86c89404a5e0090e56;hb=6544fa0ec3f3a501bcb89ea977756911bd7f3ebd;hpb=bfc1a54cf84bb1784c14bd4f5acbb500460e35b5 diff --git a/httpinput.h b/httpinput.h index 6b0c875..823204d 100644 --- a/httpinput.h +++ b/httpinput.h @@ -12,7 +12,7 @@ class InputProto; class HTTPInput : public Input { public: - HTTPInput(const std::string &url); + HTTPInput(const std::string &url, Input::Encoding encoding); // Serialization/deserialization. HTTPInput(const InputProto &serialized); @@ -59,6 +59,9 @@ private: 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;