acl  3.5.3.0
acl::http_servlet类 参考

#include <http_servlet.hpp>

+ 类 acl::http_servlet 继承关系图:
+ acl::http_servlet 的协作图:

Public 成员函数

 http_servlet (http_handlers_t *handlers, socket_stream *stream, session *session)
 
 ~http_servlet (void)
 
- Public 成员函数 继承自 acl::http_servlet_impl
 http_servlet_impl (http_handlers_t *handlers, socket_stream *stream, session *session)
 
virtual ~http_servlet_impl (void)
 
- Public 成员函数 继承自 acl::HttpServlet
 HttpServlet (socket_stream *stream, session *session)
 
 HttpServlet (socket_stream *stream, const char *memcache_addr="127.0.0.1|11211")
 
 HttpServlet (void)
 
virtual ~HttpServlet (void)=0
 
sessiongetSession (void) const
 
socket_streamgetStream (void) const
 
HttpServletsetLocalCharset (const char *charset)
 
HttpServletsetRwTimeout (int rw_timeout)
 
HttpServletsetParseBody (bool on)
 
HttpServletsetParseBodyLimit (int length)
 
bool start (void)
 
virtual bool doRun (void)
 
virtual bool doRun (session &session, socket_stream *stream=NULL)
 
virtual bool doRun (const char *memcached_addr, socket_stream *stream)
 

额外继承的成员函数

- Protected 成员函数 继承自 acl::http_servlet_impl
bool doGet (HttpRequest &req, HttpResponse &res)
 
bool doPost (HttpRequest &req, HttpResponse &res)
 
bool doHead (HttpRequest &req, HttpResponse &res)
 
bool doPut (HttpRequest &req, HttpResponse &res)
 
bool doPatch (HttpRequest &req, HttpResponse &res)
 
bool doConnect (HttpRequest &req, HttpResponse &res)
 
bool doPurge (HttpRequest &req, HttpResponse &res)
 
bool doDelete (HttpRequest &req, HttpResponse &res)
 
bool doOptions (HttpRequest &req, HttpResponse &res)
 
bool doProfind (HttpRequest &req, HttpResponse &res)
 
bool doWebsocket (HttpRequest &req, HttpResponse &res)
 
bool doUnknown (HttpRequest &req, HttpResponse &res)
 
bool doError (HttpRequest &req, HttpResponse &res)
 
- Protected 成员函数 继承自 acl::HttpServlet
virtual bool doWebSocket (HttpServletRequest &, HttpServletResponse &)
 
virtual bool doPropfind (HttpServletRequest &, HttpServletResponse &)
 
virtual bool doOther (HttpServletRequest &, HttpServletResponse &, const char *method)
 
- Protected 成员函数 继承自 acl::acl::noncopyable
 noncopyable ()
 
 ~noncopyable ()
 
- Protected 属性 继承自 acl::HttpServlet
HttpServletRequestreq_
 
HttpServletResponseres_
 

详细描述

在文件 http_servlet.hpp9 行定义.

构造及析构函数说明

◆ http_servlet()

acl::http_servlet::http_servlet ( http_handlers_t handlers,
socket_stream stream,
session session 
)
inline

在文件 http_servlet.hpp11 行定义.

13  : http_servlet_impl(handlers, stream, session) {}
http_servlet_impl(http_handlers_t *handlers, socket_stream *stream, session *session)

◆ ~http_servlet()

acl::http_servlet::~http_servlet ( void  )
inline

在文件 http_servlet.hpp15 行定义.

15 {}

该类的文档由以下文件生成: