X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=httpinput.h;h=823204d5b1cff4c264d348b70a731a93e29f1949;hp=2273e7dd2782535684fa92be5c4b5ad86140d52a;hb=bd5882e9ab6c9c4f280a5eb5ca24da2d5275d756;hpb=cbdce14899459aca2e5331b6e1a969c359d28880 diff --git a/httpinput.h b/httpinput.h index 2273e7d..823204d 100644 --- a/httpinput.h +++ b/httpinput.h @@ -1,6 +1,7 @@ #ifndef _HTTPINPUT_H #define _HTTPINPUT_H 1 +#include #include #include #include @@ -11,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); @@ -58,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;