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-16 01:20:38 +0100
commit43181cb008813ecbf85804ee66029afb3fbf5b82 (patch)
tree74649d6f38d0c9a279d26f1512d0d43373551a71 /src/lib/http_server.h
parent5d3be01a220403cc821f255445ee70dbcaa12ba6 (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;