|
SNode.C
|
#include <SendFileCommand.h>
Public Member Functions | |
| SendFileCommand (const std::string &file, const std::function< void(int)> &onStatus, 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) | |
| ~SendFileCommand () 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 | file |
| std::function< void(int errnum)> | onStatus |
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 SendFileCommand.h.
| web::http::client::commands::SendFileCommand::SendFileCommand | ( | const std::string & | file, |
| const std::function< void(int)> & | onStatus, | ||
| 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 SendFileCommand.cpp.
References file, onStatus, and web::http::client::RequestCommand::RequestCommand().
Referenced by web::http::client::MasterRequest::sendFile().
|
overridedefault |
|
overridevirtual |
Implements web::http::client::RequestCommand.
Definition at line 62 of file SendFileCommand.cpp.
References web::http::client::RequestCommand::error, web::http::client::MasterRequest::executeSendFile(), file, and onStatus.
|
private |
Definition at line 71 of file SendFileCommand.h.
Referenced by execute(), and SendFileCommand().
|
private |
Definition at line 72 of file SendFileCommand.h.
Referenced by execute(), and SendFileCommand().