|
SNode.C
|
#include <RequestCommand.h>
Public Member Functions | |
| 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 () |
| virtual bool | execute (const std::shared_ptr< MasterRequest > &request)=0 |
| bool | getError () const |
Public Attributes | |
| 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 | |
| bool | error = false |
Definition at line 60 of file RequestCommand.h.
| 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 | ||
| ) |
Definition at line 49 of file RequestCommand.cpp.
References onResponseParseError, and onResponseReceived.
Referenced by web::http::client::commands::EndCommand::EndCommand(), web::http::client::commands::SendFileCommand::SendFileCommand(), web::http::client::commands::SendFragmentCommand::SendFragmentCommand(), web::http::client::commands::SendHeaderCommand::SendHeaderCommand(), web::http::client::commands::SseCommand::SseCommand(), and web::http::client::commands::UpgradeCommand::UpgradeCommand().
|
delete |
|
deletenoexcept |
|
virtual |
Definition at line 56 of file RequestCommand.cpp.
|
pure virtual |
Implemented in web::http::client::commands::EndCommand, web::http::client::commands::SendFileCommand, web::http::client::commands::SendFragmentCommand, web::http::client::commands::SendHeaderCommand, web::http::client::commands::SseCommand, and web::http::client::commands::UpgradeCommand.
Referenced by web::http::client::MasterRequest::initiate().
| bool web::http::client::RequestCommand::getError | ( | ) | const |
Definition at line 59 of file RequestCommand.cpp.
References error.
Referenced by web::http::client::MasterRequest::initiate().
|
delete |
|
deletenoexcept |
|
protected |
Definition at line 81 of file RequestCommand.h.
Referenced by web::http::client::commands::SendFileCommand::execute(), and getError().
| const std::function<void(const std::shared_ptr<Request>&, const std::string&)> web::http::client::RequestCommand::onResponseParseError |
Definition at line 78 of file RequestCommand.h.
Referenced by web::http::client::MasterRequest::initiate(), and RequestCommand().
| const std::function<void(const std::shared_ptr<Request>&, const std::shared_ptr<Response>&)> web::http::client::RequestCommand::onResponseReceived |
Definition at line 77 of file RequestCommand.h.
Referenced by web::http::client::MasterRequest::initiate(), and RequestCommand().