summaryrefslogtreecommitdiffstats
path: root/src/response.h
diff options
context:
space:
mode:
authorErik Andersson <erik@packy.se>2016-11-22 23:56:43 +0100
committerErik Andersson <erik@packy.se>2016-11-22 23:56:43 +0100
commit41954fffc10bfd230f857f57c6871b412d5f2e91 (patch)
tree010bcf28f294a58b4a22b7276cf615758648bcbe /src/response.h
parented374a8dbcdaaf273964293d2805bdd61b148022 (diff)
downloadocelot-master.zip
ocelot-master.tar.gz
ocelot-master.tar.bz2
Ocelot v1.0HEADv1.0master
Diffstat (limited to 'src/response.h')
-rw-r--r--src/response.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/response.h b/src/response.h
index 925a4a5..6f4d6f2 100644
--- a/src/response.h
+++ b/src/response.h
@@ -1,6 +1,11 @@
+#ifndef RESPONSE_H
+#define REPSONSE_H
+
#include <string>
+#include "ocelot.h"
-std::string response(const std::string &body, bool gzip, bool html);
-std::string response_head(bool gzip, bool html);
-std::string error(const std::string &err);
-std::string warning(const std::string &msg);
+const std::string response(const std::string &body, client_opts_t &client_opts);
+const std::string response_head(size_t content_length, client_opts_t &client_opts);
+const std::string error(const std::string &err, client_opts_t &client_opts);
+const std::string warning(const std::string &msg);
+#endif