create_query

This commit is contained in:
orignal
2026-07-26 14:11:18 -04:00
parent bea4829b84
commit d19cddca7e
2 changed files with 44 additions and 20 deletions
+4 -2
View File
@@ -62,13 +62,15 @@ namespace http
* @brief Parse query part of url to key/value map
* @note Honestly, this should be implemented with std::multimap
*/
bool parse_query(std::map<std::string, std::string> & params);
bool parse_query(std::map<std::string, std::string> & params) const;
void create_query (const std::map<std::string, std::string>& params);
/**
* @brief Serialize URL structure to url
* @note Returns relative url if schema if empty, absolute url otherwise
*/
std::string to_string () const;
std::string to_string (bool requestTargetOnly = false) const;
/**
* @brief return true if the host is inside i2p