add methods to Request for adding and removing parameters
Added methods: void AddParam(const std::wstring & param_name, const std::wstring & param_value); void AddParam(const wchar_t * param_name, const wchar_t * param_value); void RemoveParam(const wchar_t * param_name); void RemoveParam(const std::wstring & param_name); This is only temporarily, we will be using the pt::Space structure in the future.
This commit is contained in:
@@ -437,6 +437,12 @@ public:
|
||||
std::wstring * ParamValuep(const wchar_t * param_name); // returns nullptr if there is no such a parameter
|
||||
std::wstring * ParamValuep(const std::wstring & param_name); // returns nullptr if there is no such a parameter
|
||||
|
||||
void AddParam(const std::wstring & param_name, const std::wstring & param_value);
|
||||
void AddParam(const wchar_t * param_name, const wchar_t * param_value);
|
||||
|
||||
void RemoveParam(const wchar_t * param_name);
|
||||
void RemoveParam(const std::wstring & param_name);
|
||||
|
||||
bool IsPostVar(const wchar_t * var);
|
||||
bool IsPostVar(const std::wstring & var);
|
||||
const std::wstring & PostVar(const wchar_t * var); // returns an empty string if there is no such a parameter
|
||||
|
||||
Reference in New Issue
Block a user