Samchon Framework for CPP
1.0.0
|
URLVariables class is for representing variables of HTTP. More...
#include <URLVariables.hpp>
Public Member Functions | |
URLVariables () | |
Default Constructor. More... | |
URLVariables (const WeakString &flashVars) | |
Constructor by a string representing encoded properties. More... | |
auto | toString () const -> std::string |
Get the string representing URLVariables. More... | |
Public Member Functions inherited from samchon::HashMap< std::string, std::string > | |
auto | has (const std::string &key) const -> bool |
Whether have the item or not. More... | |
auto | get (const std::string &key) -> std::string & |
Get element. More... | |
void | set (const std::string &key, const std::string &val) |
Set element. More... | |
auto | pop (const std::string &key) -> std::string |
Pop item. More... | |
Static Public Member Functions | |
static auto | encode (const WeakString &wstr) -> std::string |
Encode a string into a valid URI. More... | |
static auto | decode (const WeakString &wstr) -> std::string |
Decode a URI string. More... | |
URLVariables class is for representing variables of HTTP.
URLVariables class allows you to transfer variables between an application and server. When transfering, URLVariables will be converted to a URI string.
Use URLVariabels objects with methods of HTTPLoader class.
Definition at line 28 of file URLVariables.hpp.
|
inline |
Default Constructor.
Definition at line 41 of file URLVariables.hpp.
|
inline |
Constructor by a string representing encoded properties.
Converts the variable string to properties of the specified URLVariables object.
A | uri-encoded string containing pair of properties |
Definition at line 53 of file URLVariables.hpp.
References decode(), samchon::WeakString::find(), samchon::WeakString::split(), and samchon::WeakString::substr().
|
inlinestatic |
Encode a string into a valid URI.
Encodes a string to follow URI standard format.
A | string to encode to URI |
Definition at line 79 of file URLVariables.hpp.
Referenced by samchon::library::HTTPLoader::load(), and toString().
|
inlinestatic |
Decode a URI string.
Decodes a URI string to its original
A | string encoded |
Definition at line 116 of file URLVariables.hpp.
Referenced by URLVariables().
|
inline |
Get the string representing URLVariables.
Returns a string object representing URLVariables following the URI
Definition at line 177 of file URLVariables.hpp.
References encode().