1 #ifndef MSP_HTTP_UTILS_H_
2 #define MSP_HTTP_UTILS_H_
6 #include <msp/net/mspnet_api.h>
27 typedef std::map<std::string, std::string> Query;
29 MSPNET_API std::string urlencode(const std::string &, EncodeLevel =SAFE);
30 MSPNET_API std::string urlencode_plus(const std::string &, EncodeLevel =SAFE);
31 MSPNET_API std::string urldecode(const std::string &);
32 MSPNET_API Url parse_url(const std::string &);
33 MSPNET_API std::string build_url(const Url &);
34 MSPNET_API Query parse_query(const std::string &);
35 MSPNET_API std::string build_query(const Query &);