GH #75: Poco::Uri addQueryParameter method

- added GH #75: Poco::Uri addQueryParameter method
This commit is contained in:
aleks-f
2013-03-19 22:51:04 -05:00
parent ce666f84f1
commit b1c6065ffc
4 changed files with 27 additions and 0 deletions

View File

@@ -175,6 +175,13 @@ public:
void setQuery(const std::string& query);
/// Sets the query part of the URI.
void addQueryParameter(const std::string& param, const std::string& val = "");
/// Adds "param=val" to the query; "param" may not be empty.
/// If val is empty, only '=' is appended to the parameter.
///
/// In addition to regular encoding, function also encodes '&' and '=',
/// if found in param or val.
const std::string& getRawQuery() const;
/// Returns the unencoded query part of the URI.