summaryrefslogtreecommitdiff
path: root/src/lib/http_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/http_server.h')
-rw-r--r--src/lib/http_server.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/http_server.h b/src/lib/http_server.h
index 982fb4d9a..56f75047c 100644
--- a/src/lib/http_server.h
+++ b/src/lib/http_server.h
@@ -30,14 +30,15 @@ LIBDCP_ENABLE_WARNINGS
class Response
{
public:
- Response(int code);
- Response(int code, std::string payload);
-
enum class Type {
HTML,
- JSON
+ JSON,
+ CSS
};
+ Response(int code);
+ Response(int code, std::string payload, Type type = Type::HTML);
+
void add_header(std::string key, std::string value);
void set_type(Type type) {
_type = type;