static class for parsing, encoding, decoding any http data
More...
#include <parser_http.h>
static class for parsing, encoding, decoding any http data
ParserHTTP is used to serialize and deserialize http request, response etc.
static std::string ParserHTTP::base64Decode |
( |
std::string & |
value | ) |
|
|
static |
static std::string ParserHTTP::base64Encode |
( |
std::string & |
value | ) |
|
|
static |
static Request* ParserHTTP::getRequestFromStr |
( |
std::string & |
str | ) |
|
|
static |
Deserialize http request from input string
- Parameters
-
- Returns
- deserialized Request object
static std::string ParserHTTP::getStrFromResponse |
( |
Response & |
response | ) |
|
|
static |
Serialize http response into string
- Parameters
-
- Returns
- serialized string
static std::string ParserHTTP::getTime |
( |
const time_t * |
time_struct = nullptr , |
|
|
const char * |
format = "%Y.%m.%d" |
|
) |
| |
|
static |
get date stamp in string in format from time_t
- Parameters
-
time_struct | required time in time_t, if nullptr - execute current time |
format | format of representing date in string |
- Returns
- date stamp as string
static std::string ParserHTTP::sha256 |
( |
std::string & |
key, |
|
|
std::string & |
message |
|
) |
| |
|
static |
static std::string ParserHTTP::trim |
( |
std::string & |
str | ) |
|
|
static |
static std::string ParserHTTP::urlDecode |
( |
const std::string & |
value | ) |
|
|
static |
Decode input string
- Parameters
-
- Returns
- decoded string
static std::string ParserHTTP::urlEncode |
( |
const std::string & |
value | ) |
|
|
static |
Encode input string
- Parameters
-
- Returns
- encoded string
The documentation for this class was generated from the following file: