http_cookie.h 561 B

123456789101112131415161718192021222324252627
  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. private:
  21. std::map<std::string, std::string> m_param;
  22. };
  23. }
  24. }
  25. }
  26. #endif