1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
9 #ifndef example_diameter_launcher_MyHandler_hpp
10 #define example_diameter_launcher_MyHandler_hpp
13 #include <anna/http/Response.hpp>
14 #include <anna/http/Handler.hpp>
17 class MyHandler : public anna::http::Handler {
19 MyHandler() : anna::http::Handler("http_converter::MyHandler") {
20 allocateResponse()->createHeader(anna::http::Header::Type::Date);
25 void evRequest(anna::comm::ClientSocket&, const anna::http::Request& request) throw(anna::RuntimeException);
26 void evResponse(anna::comm::ClientSocket&, const anna::http::Response&) throw(anna::RuntimeException) {;}