|
SNode.C
|
#include <SocketContextFactory.h>
Public Types | |
| using | MasterRequest = web::http::client::MasterRequest |
| using | Response = web::http::client::Response |
Public Member Functions | |
| SocketContextFactory (const std::function< void(const std::shared_ptr< MasterRequest > &)> &onHttpConnected, const std::function< void(const std::shared_ptr< MasterRequest > &)> &onHttpDisconnected, const std::function< net::config::ConfigInstance &()> &getConfigInstance) | |
| void | setHostHeader (const std::string &hostHeader) |
| std::string | getHostHeader () const |
| void | setPipelinedRequests (bool pipelinedRequests) |
Public Member Functions inherited from core::socket::stream::SocketContextFactory | |
| SocketContextFactory (SocketContextFactory &)=delete | |
| SocketContextFactory (SocketContextFactory &&)=delete | |
| SocketContextFactory & | operator= (SocketContextFactory &)=delete |
| SocketContextFactory & | operator= (SocketContextFactory &&)=delete |
Private Member Functions | |
| core::socket::stream::SocketContext * | create (core::socket::stream::SocketConnection *socketConnection) override |
Private Attributes | |
| std::function< void(const std::shared_ptr< MasterRequest > &)> | onHttpConnected |
| std::function< void(const std::shared_ptr< MasterRequest > &)> | onHttpDisconnected |
| ConfigHTTP | configHttp |
Additional Inherited Members | |
Protected Member Functions inherited from web::http::SocketContextFactory< web::http::client::SocketContext > | |
| SocketContextFactory ()=default | |
| ~SocketContextFactory () override=default | |
Protected Member Functions inherited from core::socket::stream::SocketContextFactory | |
| SocketContextFactory ()=default | |
Definition at line 62 of file SocketContextFactory.h.
Definition at line 64 of file SocketContextFactory.h.
Definition at line 65 of file SocketContextFactory.h.
| web::http::client::SocketContextFactory::SocketContextFactory | ( | const std::function< void(const std::shared_ptr< MasterRequest > &)> & | onHttpConnected, |
| const std::function< void(const std::shared_ptr< MasterRequest > &)> & | onHttpDisconnected, | ||
| const std::function< net::config::ConfigInstance &()> & | getConfigInstance | ||
| ) |
Definition at line 50 of file SocketContextFactory.cpp.
References web::http::client::ConfigHTTP::ConfigHTTP(), configHttp, onHttpConnected, and onHttpDisconnected.
|
overrideprivatevirtual |
Implements core::socket::stream::SocketContextFactory.
Definition at line 70 of file SocketContextFactory.cpp.
References configHttp, web::http::client::ConfigHTTP::getHostHeader(), web::http::client::ConfigHTTP::getPipelinedRequests(), onHttpConnected, onHttpDisconnected, and web::http::client::SocketContext::SocketContext().
| std::string web::http::client::SocketContextFactory::getHostHeader | ( | ) | const |
Definition at line 62 of file SocketContextFactory.cpp.
References configHttp, and web::http::client::ConfigHTTP::getHostHeader().
| void web::http::client::SocketContextFactory::setHostHeader | ( | const std::string & | hostHeader | ) |
Definition at line 58 of file SocketContextFactory.cpp.
References configHttp, and web::http::client::ConfigHTTP::setHostHeader().
| void web::http::client::SocketContextFactory::setPipelinedRequests | ( | bool | pipelinedRequests | ) |
Definition at line 66 of file SocketContextFactory.cpp.
References configHttp, and web::http::client::ConfigHTTP::setPipelinedRequests().
|
private |
Definition at line 82 of file SocketContextFactory.h.
Referenced by create(), getHostHeader(), setHostHeader(), setPipelinedRequests(), and SocketContextFactory().
|
private |
Definition at line 79 of file SocketContextFactory.h.
Referenced by create(), and SocketContextFactory().
|
private |
Definition at line 80 of file SocketContextFactory.h.
Referenced by create(), and SocketContextFactory().