mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-12 11:55:13 +08:00
9697f95b8f
This reverts commit 15d999759e
.
24 lines
655 B
C++
24 lines
655 B
C++
#pragma once
|
|
|
|
class http_servlet : public acl::HttpServlet
|
|
{
|
|
public:
|
|
http_servlet(acl::socket_stream* stream, acl::session* session);
|
|
~http_servlet();
|
|
|
|
protected:
|
|
virtual bool doError(acl::HttpServletRequest&,
|
|
acl::HttpServletResponse& res);
|
|
virtual bool doOther(acl::HttpServletRequest&,
|
|
acl::HttpServletResponse& res, const char* method);
|
|
virtual bool doGet(acl::HttpServletRequest& req,
|
|
acl::HttpServletResponse& res);
|
|
virtual bool doPost(acl::HttpServletRequest& req,
|
|
acl::HttpServletResponse& res);
|
|
|
|
private:
|
|
bool replyf(acl::HttpServletRequest& req,
|
|
acl::HttpServletResponse& res,
|
|
const char* fmt, ...);
|
|
};
|