#ifndef TREE_H #define TREE_H #include "request.hpp" #include "response.hpp" #include #include #include #include namespace http { class Node { public: bool m_isValue; bool m_isDummy; std::string m_subPath; std::map> m_next; std::function m_function; public: Node(std::string subPath, bool isValue, std::function); Node(std::string subPath); }; class Tree { private: std::shared_ptr m_root; std::string m_method; size_t m_depth; public: Tree(std::string method); void AddPath(std::string, std::function); std::optional> Get(std::string); void DebugPrint(); }; } // namespace http #endif