diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2015-06-25 02:14:37 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2015-06-25 02:14:37 +0200 |
| commit | 98727c1173a5865143b70bd68218b95a030824b1 (patch) | |
| tree | 5714eaf8184a8926d4a063682b4a4119c706778a /src/http.hh | |
| parent | 85adf26a787b33d69d07df0dc786516fed800e21 (diff) | |
Add supports for specifying headers in Http::response
Diffstat (limited to 'src/http.hh')
| -rw-r--r-- | src/http.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http.hh b/src/http.hh index 58bfb92..c1e9e3b 100644 --- a/src/http.hh +++ b/src/http.hh @@ -1,6 +1,7 @@ #ifndef HTTP_HH #define HTTP_HH +#include <map> #include <string> namespace stuff { @@ -8,6 +9,9 @@ namespace stuff { class Http { public: static void response(unsigned int status, const std::string& content); + static void response(unsigned int status, + const std::map<std::string,std::string>& headers, + const std::string& content); private: Http() = delete; |
