diff options
author | Erik Andersson <erik@packy.se> | 2016-11-22 23:56:43 +0100 |
---|---|---|
committer | Erik Andersson <erik@packy.se> | 2016-11-22 23:56:43 +0100 |
commit | 41954fffc10bfd230f857f57c6871b412d5f2e91 (patch) | |
tree | 010bcf28f294a58b4a22b7276cf615758648bcbe /src/response.h | |
parent | ed374a8dbcdaaf273964293d2805bdd61b148022 (diff) | |
download | ocelot-master.zip ocelot-master.tar.gz ocelot-master.tar.bz2 |
Diffstat (limited to 'src/response.h')
-rw-r--r-- | src/response.h | 13 |
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 |