X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=httpinput.h;h=823204d5b1cff4c264d348b70a731a93e29f1949;hb=6544fa0ec3f3a501bcb89ea977756911bd7f3ebd;hp=6b0c87512dffee116dea7c86c89404a5e0090e56;hpb=d0aad5446b9896e3ba15c8a50c345e185dc1631f;p=cubemap 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;