Closed huahang closed 10 years ago
It seems it's still not complete yet?
namespace toft { class HttpHandler { private: HttpHandler(); public: virtual ~HttpHandler() {} virtual void HandleRequest(const HttpRequest* req, HttpResponse* resp); virtual void HandleGet(const HttpRequest* req, HttpResponse* resp); virtual void HandlePost(const HttpRequest* req, HttpResponse* resp); virtual void HandlePut(const HttpRequest* req, HttpResponse* resp); virtual void HandleHead(const HttpRequest* req, HttpResponse* resp); virtual void HandleDelete(const HttpRequest* req, HttpResponse* resp); virtual void HandleOptions(const HttpRequest* req, HttpResponse* resp); virtual void HandleTrace(const HttpRequest* req, HttpResponse* resp); virtual void HandleConnect(const HttpRequest* req, HttpResponse* resp); protected: void MethodNotAllowed(const HttpRequest* req, HttpResponse* resp); private: }; } // namespace toft
Not done yet……, should be protected.
I see.
:)
It seems it's still not complete yet?