From 98727c1173a5865143b70bd68218b95a030824b1 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Thu, 25 Jun 2015 02:14:37 +0200 Subject: Add supports for specifying headers in Http::response --- src/http.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http.hh') 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 #include 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& headers, + const std::string& content); private: Http() = delete; -- cgit v1.2.3-70-g09d2