#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) | |
| 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 |
| net::config::ConfigInstance & | configInstance |
Additional Inherited Members | |
| Protected Member Functions inherited from core::socket::stream::SocketContextFactory | |
| SocketContextFactory ()=default | |
| virtual | ~SocketContextFactory () |
Definition at line 60 of file SocketContextFactory.h.
Definition at line 62 of file SocketContextFactory.h.
Definition at line 63 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 55 of file SocketContextFactory.cpp.
References configInstance, onHttpConnected, and onHttpDisconnected.
|
overrideprivatevirtual |
Implements core::socket::stream::SocketContextFactory.
Definition at line 63 of file SocketContextFactory.cpp.
References configInstance, web::http::client::ConfigHTTP::getHostHeader(), web::http::client::ConfigHTTP::getPipelinedRequests(), utils::SubCommand::getSubCommand(), onHttpConnected, onHttpDisconnected, and web::http::client::SocketContext::SocketContext().
|
private |
Definition at line 75 of file SocketContextFactory.h.
Referenced by create(), and SocketContextFactory().
|
private |
Definition at line 72 of file SocketContextFactory.h.
Referenced by create(), and SocketContextFactory().
|
private |
Definition at line 73 of file SocketContextFactory.h.
Referenced by create(), and SocketContextFactory().