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

#include <SseCommand.h>

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

Public Member Functions

 SseCommand (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)
 
 ~SseCommand () override
 
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
 

Private Types

using Super = web::http::client::RequestCommand
 

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 SseCommand.h.

Member Typedef Documentation

◆ Super

Constructor & Destructor Documentation

◆ SseCommand()

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

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
web::http::client::RequestCommand Super
Definition SseCommand.h:61

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

Referenced by web::http::client::MasterRequest::requestEventSource().

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

◆ ~SseCommand()

web::http::client::commands::SseCommand::~SseCommand ( )
override

Definition at line 57 of file SseCommand.cpp.

57 {
58 }

Member Function Documentation

◆ execute()

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

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

Definition at line 60 of file SseCommand.cpp.

60 {
61 return request->executeSse();
62 }

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

Here is the call graph for this function:

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