Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
uri.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <unordered_map>
5 
12 class URI {
13  std::string raw_data;
14  std::string uri;
15  std::unordered_map<std::string, std::string> params;
16 public:
20  URI();
21 
28  URI(std::string & uri);
29 
40  bool getValueFromParam(const char * key, std::string & value);
41 
48  void setParamsAndUri(std::string & uri);
49 
56  std::string getPath();
57 
64  std::string getRawData();
65 
72  std::unordered_map<std::string, std::string> getParams();
73 };
std::string getRawData()
class represents http uri
Definition: uri.h:12
std::unordered_map< std::string, std::string > getParams()
bool getValueFromParam(const char *key, std::string &value)
std::string getPath()
void setParamsAndUri(std::string &uri)