#ifndef TREE_H #define TREE_H #include "request.hpp" #include "response.hpp" #include #include #include #include namespace http { class Node { public: bool m_is_value; bool m_is_dummy; std::string m_sub_path; 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 add_path(std::string, std::function); std::optional> get(std::string); void debug_Print(); }; } // namespace http #endif