Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
headers.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <unordered_map>
5 
11 class Headers {
12  std::unordered_map<std::string, std::string> headers;
13 public:
17  Headers();
18 
22  ~Headers();
23 
30  explicit Headers(std::string & httpHeaders);
31 
38  std::string toString();
39 
46  std::unordered_map<std::string, std::string> getHeaders();
47 
56  void add(const char * key, const char * value);
57 
68  bool getValue(const char * key, std::string & value);
69 
73  void clear();
74 };
void add(const char *key, const char *value)
std::string toString()
bool getValue(const char *key, std::string &value)
void clear()
std::unordered_map< std::string, std::string > getHeaders()
wrapper class for http headers
Definition: headers.h:11