2014-11-19 00:25:21 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class http_servlet : public acl::HttpServlet
|
|
|
|
{
|
|
|
|
public:
|
2015-09-27 20:59:21 +08:00
|
|
|
http_servlet(acl::socket_stream* stream, acl::session* session);
|
2014-11-19 00:25:21 +08:00
|
|
|
~http_servlet();
|
|
|
|
|
|
|
|
protected:
|
2015-09-27 20:59:21 +08:00
|
|
|
virtual bool doError(acl::HttpServletRequest&,
|
2014-11-19 00:25:21 +08:00
|
|
|
acl::HttpServletResponse& res);
|
2015-09-27 20:59:21 +08:00
|
|
|
virtual bool doOther(acl::HttpServletRequest&,
|
|
|
|
acl::HttpServletResponse& res, const char* method);
|
2014-11-19 00:25:21 +08:00
|
|
|
virtual bool doGet(acl::HttpServletRequest& req,
|
|
|
|
acl::HttpServletResponse& res);
|
|
|
|
virtual bool doPost(acl::HttpServletRequest& req,
|
|
|
|
acl::HttpServletResponse& res);
|
|
|
|
};
|