10 http_server(
const char* addr =
"127.0.0.1|6379",
bool use_redis =
true)
http_server & on_thread_accept(thread_accept_t fn)
std::function< void()> proc_jail_t
http_server & Patch(const char *path, http_handler_t fn)
http_server & Post(const char *path, http_handler_t fn)
http_server & Get(const char *path, http_handler_t fn)
http_server(const char *addr="127.0.0.1|6379", bool use_redis=true)
http_server & Delete(const char *path, http_handler_t fn)
http_server & Purge(const char *path, http_handler_t fn)
std::function< bool(HttpRequest &, HttpResponse &)> http_handler_t
std::function< void()> thread_init_t
std::function< void()> proc_init_t
thread_init_t thread_init_
http_server & Websocket(const char *path, http_handler_t fn)
http_server & Options(const char *path, http_handler_t fn)
thread_accept_t thread_accept_
http_server & before_proc_jail(proc_jail_t fn)
http_server & Propfind(const char *path, http_handler_t fn)
http_server & on_thread_init(thread_init_t fn)
http_server & Error(const char *path, http_handler_t fn)
void Service(int type, const char *path, http_handler_t fn)
http_server & on_proc_init(proc_init_t fn)
http_server & Head(const char *path, http_handler_t fn)
proc_sighup_t proc_sighup_
http_server & Connect(const char *path, http_handler_t fn)
http_server & on_proc_sighup(proc_sighup_t fn)
std::function< bool(acl::socket_stream &)> thread_accept_t
http_server & Put(const char *path, http_handler_t fn)
http_server & Unknown(const char *path, http_handler_t fn)
std::function< bool(acl::string &)> proc_sighup_t
std::function< void()> proc_exit_t
http_server & on_proc_exit(proc_exit_t fn)