|
SNode.C
|
#include <UpgradeCommand.h>
Public Member Functions | |
| UpgradeCommand (const std::string &url, const std::string &protocols, const std::function< void(bool)> &onUpgradeInitiate, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onResponseReceived, const std::function< void(const std::shared_ptr< Request > &, const std::string &)> &onResponseParseError) | |
| ~UpgradeCommand () override=default | |
| bool | execute (const std::shared_ptr< MasterRequest > &request) override |
Public Member Functions inherited from web::http::client::RequestCommand | |
| RequestCommand (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onResponseReceived, const std::function< void(const std::shared_ptr< Request > &, const std::string &)> &onResponseParseError) | |
| 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(bool)> | onUpgradeInitiate |
Additional Inherited Members | |
Public Attributes inherited from web::http::client::RequestCommand | |
| const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> | onResponseReceived |
| const std::function< void(const std::shared_ptr< Request > &, const std::string &)> | onResponseParseError |
Protected Attributes inherited from web::http::client::RequestCommand | |
| bool | error = false |
Definition at line 60 of file UpgradeCommand.h.
| web::http::client::commands::UpgradeCommand::UpgradeCommand | ( | const std::string & | url, |
| const std::string & | protocols, | ||
| const std::function< void(bool)> & | onUpgradeInitiate, | ||
| const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & | onResponseReceived, | ||
| const std::function< void(const std::shared_ptr< Request > &, const std::string &)> & | onResponseParseError | ||
| ) |
Definition at line 52 of file UpgradeCommand.cpp.
References onUpgradeInitiate, protocols, web::http::client::RequestCommand::RequestCommand(), and url.
Referenced by web::http::client::MasterRequest::upgrade().
|
overridedefault |
|
overridevirtual |
Implements web::http::client::RequestCommand.
Definition at line 64 of file UpgradeCommand.cpp.
References web::http::client::MasterRequest::executeUpgrade(), onUpgradeInitiate, protocols, and url.
|
private |
Definition at line 75 of file UpgradeCommand.h.
Referenced by execute(), and UpgradeCommand().
|
private |
Definition at line 74 of file UpgradeCommand.h.
Referenced by execute(), and UpgradeCommand().
|
private |
Definition at line 73 of file UpgradeCommand.h.
Referenced by execute(), and UpgradeCommand().