SNode.C
Loading...
Searching...
No Matches
web::http::client::commands::EndCommand Class Reference

#include <EndCommand.h>

Inheritance diagram for web::http::client::commands::EndCommand:
Collaboration diagram for web::http::client::commands::EndCommand:

Public Member Functions

 EndCommand (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)
 ~EndCommand () 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
RequestCommandoperator= (const RequestCommand &)=delete
RequestCommandoperator= (RequestCommand &&) noexcept=delete
virtual ~RequestCommand ()
bool getError () const

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

Detailed Description

Definition at line 60 of file EndCommand.h.

Constructor & Destructor Documentation

◆ EndCommand()

web::http::client::commands::EndCommand::EndCommand ( 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 EndCommand.cpp.

54 : web::http::client::RequestCommand(onResponseReceived, onResponseParseError) {
55 }
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

References web::http::client::RequestCommand::RequestCommand().

Referenced by web::http::client::MasterRequest::end(), and web::http::client::MasterRequest::send().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~EndCommand()

web::http::client::commands::EndCommand::~EndCommand ( )
overridedefault

Member Function Documentation

◆ execute()

bool web::http::client::commands::EndCommand::execute ( const std::shared_ptr< MasterRequest > & request)
overridevirtual

Implements web::http::client::RequestCommand.

Definition at line 57 of file EndCommand.cpp.

57 {
58 return request->executeEnd();
59 }

References web::http::client::MasterRequest::executeEnd().

Here is the call graph for this function:

The documentation for this class was generated from the following files: