X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2FMyHandler.hpp;h=9e849a3a775fe7d742ae1a662ea1a4122963d18d;hb=080dc0740d8b02011dee032f5d44eeb5f2ffe23f;hp=5f04d91b42c15271041a2578b47c4e1d1a35322e;hpb=752438861433c3789eb1b0d9f2c15e15037595e6;p=anna.git diff --git a/example/diameter/launcher/MyHandler.hpp b/example/diameter/launcher/MyHandler.hpp index 5f04d91..9e849a3 100644 --- a/example/diameter/launcher/MyHandler.hpp +++ b/example/diameter/launcher/MyHandler.hpp @@ -12,6 +12,7 @@ // Project #include #include +#include class MyHandler : public anna::http::Handler { @@ -21,9 +22,15 @@ public: } private: + void splitURI(const std::string &uri, std::string &operation, std::string & param1, std::string & param2) const; + + void sendResponse(anna::comm::ClientSocket&, anna::http::Response *response); + bool doGET(const std::string &uri, std::string &response); + bool doPOST(const std::string &uri, const nlohmann::json &j, std::string &reponse); void evRequest(anna::comm::ClientSocket&, const anna::http::Request& request) throw(anna::RuntimeException); void evResponse(anna::comm::ClientSocket&, const anna::http::Response&) throw(anna::RuntimeException) {;} }; #endif +