SNode.C
|
#include <UpgradeCommand.h>
Public Member Functions | |
UpgradeCommand (const std::string &url, const std::string &protocols, const std::function< void(const std::shared_ptr< Request > &, bool)> &onUpgradeInitiate) | |
~UpgradeCommand () override=default | |
bool | execute (const std::shared_ptr< Request > &request) override |
![]() | |
RequestCommand ()=default | |
RequestCommand (const RequestCommand &)=delete | |
RequestCommand (RequestCommand &&) noexcept=delete | |
RequestCommand & | operator= (const RequestCommand &)=delete |
RequestCommand & | operator= (RequestCommand &&) noexcept=delete |
virtual | ~RequestCommand () |
bool | getError () const |
Private Attributes | |
std::string | url |
std::string | protocols |
const std::function< void(const std::shared_ptr< Request > &, bool)> | onUpgradeInitiate |
Additional Inherited Members | |
![]() | |
const std::shared_ptr< Request > | request |
bool | error = false |
Definition at line 57 of file UpgradeCommand.h.
web::http::client::commands::UpgradeCommand::UpgradeCommand | ( | const std::string & | url, |
const std::string & | protocols, | ||
const std::function< void(const std::shared_ptr< Request > &, bool)> & | onUpgradeInitiate | ||
) |
Definition at line 52 of file UpgradeCommand.cpp.
References onUpgradeInitiate, protocols, and url.
Referenced by web::http::client::Request::upgrade().
|
overridedefault |
|
overridevirtual |
Implements web::http::client::RequestCommand.
Definition at line 60 of file UpgradeCommand.cpp.
References web::http::client::Request::executeUpgrade(), onUpgradeInitiate, protocols, and url.
|
private |
Definition at line 72 of file UpgradeCommand.h.
Referenced by execute(), and UpgradeCommand().
|
private |
Definition at line 71 of file UpgradeCommand.h.
Referenced by execute(), and UpgradeCommand().
|
private |
Definition at line 70 of file UpgradeCommand.h.
Referenced by execute(), and UpgradeCommand().