Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
HTTPMap Class Reference
HTTP Client data container for key/value pairs. More...
#include <HTTPMap.h>
Inherits HTTPData, and std::map< string, string >.
Public Member Functions | |
HTTPMap (const string &keyValueSep="=", const string &pairSep="&") | |
Instantiates map. | |
virtual void | clear () |
Clears the content. | |
Friends | |
class | HTTPClient |
Detailed Description
HTTP Client data container for key/value pairs.
This class simplifies the use of key/value pairs requests and responses used widely among web APIs. Note that HTTPMap inherits from std::map<std::string,std::string>. You can therefore use any public method of that class, including the square brackets operator ( [ ] ) to access a value.
The data is encoded or decoded to/from a key/value pairs-formatted string, after url-encoding/decoding.
Definition at line 47 of file HTTPMap.h.
Constructor & Destructor Documentation
HTTPMap | ( | const string & | keyValueSep = "=" , |
const string & | pairSep = "&" |
||
) |
Instantiates map.
- Parameters:
-
keyValueSep Key/Value separator (defaults to "=") pairSep Pairs separator (defaults to "&")
Definition at line 30 of file HTTPMap.cpp.
Member Function Documentation
void clear | ( | ) | [virtual] |
Clears the content.
Definition at line 41 of file HTTPMap.cpp.
Generated on Tue Jul 12 2022 15:26:31 by
