http_cookie.h 622 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "http_define.h"
  3. #if USE_NET_HTTP_UTIL
  4. #include <map>
  5. namespace ylib
  6. {
  7. namespace network
  8. {
  9. namespace http
  10. {
  11. class cookie
  12. {
  13. public:
  14. cookie();
  15. ~cookie();
  16. void merge(const cookie& ck);
  17. void merge(const std::string& ck);
  18. std::string to_string();
  19. void clear();
  20. std::map<std::string, std::string>& toSTL();
  21. private:
  22. std::map<std::string, std::string> m_param;
  23. };
  24. }
  25. }
  26. }
  27. #endif