SNode.C
|
#include <SocketContextUpgradeFactorySelector.h>
Public Member Functions | |
SocketContextUpgradeFactory * | select (const std::string &protocols, Request &req) |
SocketContextUpgradeFactory * | select (Request &req, Response &res) override |
![]() | |
bool | add (SocketContextUpgradeFactory *socketContextUpgradeFactory) |
void | link (const std::string &socketContextUpgradeName, SocketContextUpgradeFactory *(*linkedPlugin)()) |
void | allowDlOpen () |
void | unload (SocketContextUpgradeFactory *socketContextUpgradeFactory) |
Static Public Member Functions | |
static SocketContextUpgradeFactorySelector * | instance () |
Private Types | |
using | Super = web::http::SocketContextUpgradeFactorySelector< web::http::client::SocketContextUpgradeFactory > |
Private Member Functions | |
SocketContextUpgradeFactory * | load (const std::string &socketContextUpgradeName) override |
Additional Inherited Members | |
![]() | |
using | SocketContextUpgradeFactory = web::http::client::SocketContextUpgradeFactory |
using | Request = typename SocketContextUpgradeFactory::Request |
using | Response = typename SocketContextUpgradeFactory::Response |
![]() | |
SocketContextUpgradeFactorySelector ()=default | |
virtual | ~SocketContextUpgradeFactorySelector ()=default |
SocketContextUpgradeFactory * | select (const std::string &socketContextUpgradeName) |
bool | add (SocketContextUpgradeFactory *socketContextUpgradeFactory, void *handler) |
SocketContextUpgradeFactory * | load (const std::string &socketContextUpgradeName, const std::string &socketContextUpgradeFactoryLibraryFile, const std::string &socketContextUpgradeFactoryFunctionName) |
Definition at line 56 of file SocketContextUpgradeFactorySelector.h.
|
private |
Definition at line 59 of file SocketContextUpgradeFactorySelector.h.
|
static |
Definition at line 79 of file SocketContextUpgradeFactorySelector.cpp.
Referenced by web::http::client::SocketContextUpgradeFactory::checkRefCount(), web::http::client::Request::executeUpgrade(), web::http::client::SocketContextUpgradeFactory::link(), and web::http::client::Request::upgrade().
|
overrideprivatevirtual |
Implements web::http::SocketContextUpgradeFactorySelector< web::http::client::SocketContextUpgradeFactory >.
Definition at line 64 of file SocketContextUpgradeFactorySelector.cpp.
SocketContextUpgradeFactory * web::http::client::SocketContextUpgradeFactorySelector::select | ( | const std::string & | protocols, |
Request & | req | ||
) |
Definition at line 85 of file SocketContextUpgradeFactorySelector.cpp.
References web::http::client::SocketContextUpgradeFactory::prepare(), web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::select(), httputils::str_split(), httputils::str_trimm(), and httputils::to_lower().
Referenced by web::http::client::Request::executeUpgrade().
|
overridevirtual |
Implements web::http::SocketContextUpgradeFactorySelector< web::http::client::SocketContextUpgradeFactory >.
Definition at line 110 of file SocketContextUpgradeFactorySelector.cpp.
References web::http::client::Response::get(), web::http::SocketContextUpgradeFactory< RequestT, ResponseT >::prepare(), web::http::SocketContextUpgradeFactorySelector< SocketContextUpgradeFactoryT >::select(), and httputils::to_lower().
Referenced by web::http::client::Request::upgrade().