#ifndef HTTP_SESSION_H #define HTTP_SESSION_H #include "core/object.h" #include #include #include class HTTPSession : public Object { public: void add_object(const std::string &key,Object *obj); void remove_object(const std::string &key); Object *get_object(const std::string &key); void add_int(const std::string &key, const int val); void remove_int(const std::string &key); int get_int(const std::string &key); std::string session_id; void clear(); void reset(); HTTPSession(); ~HTTPSession(); protected: std::mutex _mutex; //todo make something similar to godot's variant. (Or get godot's variant lol) std::map _data; std::map _int_data; }; #endif