diff options
Diffstat (limited to 'src/HttpResponse.h')
-rw-r--r-- | src/HttpResponse.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/HttpResponse.h b/src/HttpResponse.h new file mode 100644 index 0000000..33148da --- /dev/null +++ b/src/HttpResponse.h @@ -0,0 +1,18 @@ +#pragma once + +#include <sstream> +#include <string> + +enum class ResponseCode { + OK = 200 +}; + +class HttpResponse { +public: + HttpResponse(ResponseCode); + + void add_header(std::string header); + std::string to_string() const; +private: + std::stringstream m_string_stream; +}; |