acl/lib_acl_cpp/samples/http_servlet2/http_servlet.h

19 lines
521 B
C
Raw Normal View History

2014-11-19 00:25:21 +08:00
#pragma once
class http_servlet : public acl::HttpServlet
{
public:
http_servlet(acl::socket_stream* stream, acl::session* session);
2014-11-19 00:25:21 +08:00
~http_servlet();
protected:
virtual bool doError(acl::HttpServletRequest&,
acl::HttpServletResponse& res);
virtual bool doUnknown(acl::HttpServletRequest&,
acl::HttpServletResponse& res);
virtual bool doGet(acl::HttpServletRequest& req,
acl::HttpServletResponse& res);
virtual bool doPost(acl::HttpServletRequest& req,
acl::HttpServletResponse& res);
};