|
Sese Framework
3.0.0
A cross-platform framework
|
HTTP v3 Service Interface. More...
#include <HttpService.h>
Public Types | |
| using | Ptr = std::shared_ptr<HttpService> |
| using | SSLContextPtr = std::unique_ptr<security::SSLContext> |
| using | FilterCallback = std::function<bool(net::http::Request &, net::http::Response &)> |
| using | ConnectionCallback = std::function<bool(net::IPAddress::Ptr &)> |
| using | FilterMap = std::unordered_map<std::string, FilterCallback> |
| using | MountPointMap = std::unordered_map<std::string, std::string> |
| using | ServletMap = std::unordered_map<std::string, net::http::Servlet> |
Public Types inherited from sese::service::Service | |
| using | Ptr = std::unique_ptr<Service> |
Static Public Member Functions | |
| static HttpService::Ptr | create (const net::IPAddress::Ptr &address, SSLContextPtr ssl_context, uint32_t keepalive, std::string &serv_name, MountPointMap &mount_points, ServletMap &servlets, FilterCallback &tail_filter, FilterMap &filters, ConnectionCallback &connection_callback) |
Protected Member Functions | |
| HttpService (net::IPAddress::Ptr address, SSLContextPtr ssl_context, uint32_t keepalive, std::string &serv_name, MountPointMap &mount_points, ServletMap &servlets, FilterCallback &tail_filter, FilterMap &filters, ConnectionCallback &connection_callback) | |
Protected Attributes | |
| net::IPAddress::Ptr | address |
| SSLContextPtr | ssl_context |
| Thread::Ptr | thread |
| uint32_t | keepalive = 30 |
| std::string & | serv_name |
| MountPointMap & | mount_points |
| ServletMap & | servlets |
| FilterCallback & | tail_filter |
| FilterMap & | filters |
| ConnectionCallback & | connection_callback |
Additional Inherited Members | |
Public Member Functions inherited from sese::service::Service | |
| Service ()=default | |
| virtual | ~Service ()=default |
| virtual bool | startup ()=0 |
| virtual bool | shutdown ()=0 |
| virtual int | getLastError ()=0 |
| virtual std::string | getLastErrorMessage ()=0 |
| ErrorCode | getErrorCode () |
HTTP v3 Service Interface.
| using sese::service::http::HttpService::ConnectionCallback = std::function<bool(net::IPAddress::Ptr &)> |
| using sese::service::http::HttpService::FilterCallback = std::function<bool(net::http::Request &, net::http::Response &)> |
| using sese::service::http::HttpService::FilterMap = std::unordered_map<std::string, FilterCallback> |
| using sese::service::http::HttpService::MountPointMap = std::unordered_map<std::string, std::string> |
| using sese::service::http::HttpService::Ptr = std::shared_ptr<HttpService> |
| using sese::service::http::HttpService::ServletMap = std::unordered_map<std::string, net::http::Servlet> |
| using sese::service::http::HttpService::SSLContextPtr = std::unique_ptr<security::SSLContext> |
|
protected |
|
static |
References address, connection_callback, filters, keepalive, mount_points, serv_name, servlets, ssl_context, and tail_filter.
Referenced by sese::service::http::HttpServer::regService().
|
protected |
Referenced by create().
|
protected |
Referenced by create().
|
protected |
Referenced by create(), and sese::internal::service::http::HttpServiceImpl::getKeepalive().
|
protected |
Referenced by create().
|
protected |
Referenced by create().
|
protected |
Referenced by create().
|
protected |
Referenced by create().
|
protected |
Referenced by create().
|
protected |