|
Web framework C++
2.0.0
Simple web framework on c++ designed to easily create web pages, etc
|
class represents http uri More...
#include <uri.h>

Public Member Functions | |
| URI () | |
| URI (std::string &uri) | |
| bool | getValueFromParam (const char *key, std::string &value) |
| void | setParamsAndUri (std::string &uri) |
| std::string | getPath () |
| std::string | getRawData () |
| std::unordered_map< std::string, std::string > | getParams () |
class represents http uri
URI consist of uri - a string of uri without arguments, and map of key-value pairs which are deserialized parameters of uri
| URI::URI | ( | ) |
Create empty URI object
| URI::URI | ( | std::string & | uri | ) |
Construct URI object from string, deserialize all params and decode input string
| uri | http uri string |
| std::unordered_map<std::string, std::string> URI::getParams | ( | ) |
get deserialized and decoded map of http uri params
| std::string URI::getPath | ( | ) |
get decoded uri path without params
| std::string URI::getRawData | ( | ) |
get unchanged uri string with params
| bool URI::getValueFromParam | ( | const char * | key, |
| std::string & | value | ||
| ) |
get value by key from uri
| key | key in params of http uri |
| value | out param, where will be written value if exists or do nothing otherwise |
| void URI::setParamsAndUri | ( | std::string & | uri | ) |
deserialize and decode input http uri into path and params
| uri | http uri string |
1.8.11