summaryrefslogtreecommitdiff
path: root/src/lib/http_server.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-01-24 21:21:46 +0100
committerCarl Hetherington <cth@carlh.net>2026-02-03 21:37:04 +0100
commit206b7c04827da7a04027b4f9bb59d0e15332e5c8 (patch)
treeb8145a5603d18b9963f8e4768b3d25ff1785cd3b /src/lib/http_server.h
parent46cd465561ae8a431c306cfdb7357fd7329a1420 (diff)
Tidy Response initialization and support ::CSS.
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;