From 376b88ec09ef8cf71dd823467406c58204485fcc Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Tue, 11 Aug 2015 22:13:23 +0300 Subject: Fixed compiler's errors in TgTypeParser + fixed indentation + some other fixes --- include/tgbot/net/HttpParser.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'include/tgbot/net/HttpParser.h') diff --git a/include/tgbot/net/HttpParser.h b/include/tgbot/net/HttpParser.h index dcb857b..83068fb 100644 --- a/include/tgbot/net/HttpParser.h +++ b/include/tgbot/net/HttpParser.h @@ -34,33 +34,33 @@ namespace TgBot { class HttpParser { public: - static HttpParser& getInstance(); + static HttpParser& getInstance(); - std::string generateRequest(const Url& url, const std::vector& args, bool isKeepAlive = false); - std::string generateMultipartFormData(const std::vector& args, const std::string& bondary); - std::string generateMultipartBoundary(const std::vector& args); - std::string generateWwwFormUrlencoded(const std::vector& args); - std::string generateResponse(const std::string& data, const std::string& mimeType = "text/plain", short unsigned statusCode = 200, const std::string& statusStr = "OK", bool isKeepAlive = false); + std::string generateRequest(const Url& url, const std::vector& args, bool isKeepAlive = false); + std::string generateMultipartFormData(const std::vector& args, const std::string& bondary); + std::string generateMultipartBoundary(const std::vector& args); + std::string generateWwwFormUrlencoded(const std::vector& args); + std::string generateResponse(const std::string& data, const std::string& mimeType = "text/plain", short unsigned statusCode = 200, const std::string& statusStr = "OK", bool isKeepAlive = false); - inline std::string parseRequest(const std::string& data, std::map& headers) { - return parseHttp(true, data, headers); - } + inline std::string parseRequest(const std::string& data, std::map& headers) { + return parseHttp(true, data, headers); + } - inline std::string parseRequest(const std::string& data) { - return parseHttp(true, data); - } + inline std::string parseRequest(const std::string& data) { + return parseHttp(true, data); + } - inline std::string parseResponse(const std::string& data, std::map& headers) { - return parseHttp(false, data, headers); - } + inline std::string parseResponse(const std::string& data, std::map& headers) { + return parseHttp(false, data, headers); + } - inline std::string parseResponse(const std::string& data) { - return parseHttp(false, data); - } + inline std::string parseResponse(const std::string& data) { + return parseHttp(false, data); + } private: - std::string parseHttp(bool isRequest, const std::string& data, std::map& headers); - std::string parseHttp(bool isRequest, const std::string& data); + std::string parseHttp(bool isRequest, const std::string& data, std::map& headers); + std::string parseHttp(bool isRequest, const std::string& data); }; } -- cgit v1.2.3