SNode.C
|
#include <SendFileCommand.h>
Public Member Functions | |
SendFileCommand (const std::string &file, const std::function< void(int)> &onStatus) | |
~SendFileCommand () override=default | |
bool | execute (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 | file |
std::function< void(int errnum)> | onStatus |
Additional Inherited Members | |
![]() | |
bool | error = false |
Definition at line 56 of file SendFileCommand.h.
web::http::client::commands::SendFileCommand::SendFileCommand | ( | const std::string & | file, |
const std::function< void(int)> & | onStatus | ||
) |
Definition at line 52 of file SendFileCommand.cpp.
References file, and onStatus.
Referenced by web::http::client::Request::sendFile().
|
overridedefault |
|
overridevirtual |
Implements web::http::client::RequestCommand.
Definition at line 57 of file SendFileCommand.cpp.
References web::http::client::RequestCommand::error, web::http::client::Request::executeSendFile(), file, and onStatus.
|
private |
Definition at line 65 of file SendFileCommand.h.
Referenced by execute(), and SendFileCommand().
|
private |
Definition at line 66 of file SendFileCommand.h.
Referenced by execute(), and SendFileCommand().