#include "output_http.h" namespace Mist { class OutHTTP : public HTTPOutput { public: OutHTTP(Socket::Connection & conn); ~OutHTTP(); static void init(Util::Config * cfg); static bool listenMode(); virtual void onFail(); ///preHTTP is disabled in the internal HTTP output, since most don't need the stream alive to work virtual void preHTTP(){}; void HTMLResponse(); void onHTTP(); void sendIcon(); bool websocketHandler(); JSON::Value getStatusJSON(std::string & reqHost, const std::string & useragent = ""); bool stayConnected; virtual bool onFinish(){ return stayConnected; } }; } typedef Mist::OutHTTP mistOut;