#include <src/main/decaf/net/URLEncoder.h>
Public Member Functions | |
| virtual | ~URLEncoder () |
Static Public Member Functions | |
| static std::string | encode (const std::string &value) |
This class contains a utility method for converting a string to the format required by the application/x-www-form-urlencoded MIME content type. | |
| virtual decaf::net::URLEncoder::~URLEncoder | ( | ) | [inline, virtual] |
| static std::string decaf::net::URLEncoder::encode | ( | const std::string & | value | ) | [static] |
This class contains a utility method for converting a string to the format required by the application/x-www-form-urlencoded MIME content type.
All characters except letters ('a'..'z', 'A'..'Z') and numbers ('0'..'9') and characters '.', '-', '*', '_' are converted into their hexidecimal value prepended by ''.
For example: '#' -> 23
In addition, spaces are substituted by '+'
| value | - the string to be converted |
1.6.1