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

#include <SendFragmentCommand.h>

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

Public Member Functions

 SendFragmentCommand (const char *chunk, std::size_t chunkLen)
 
 ~SendFragmentCommand () override
 
bool execute (Request *request) override
 
- Public Member Functions inherited from web::http::client::RequestCommand
 RequestCommand ()=default
 
 RequestCommand (const RequestCommand &)=delete
 
 RequestCommand (RequestCommand &&) noexcept=delete
 
RequestCommandoperator= (const RequestCommand &)=delete
 
RequestCommandoperator= (RequestCommand &&) noexcept=delete
 
virtual ~RequestCommand ()
 
bool getError () const
 

Private Attributes

char * chunk
 
std::size_t chunkLen
 

Additional Inherited Members

- Protected Attributes inherited from web::http::client::RequestCommand
bool error = false
 

Detailed Description

Definition at line 54 of file SendFragmentCommand.h.

Constructor & Destructor Documentation

◆ SendFragmentCommand()

web::http::client::commands::SendFragmentCommand::SendFragmentCommand ( const char *  chunk,
std::size_t  chunkLen 
)

Definition at line 54 of file SendFragmentCommand.cpp.

References chunk, and chunkLen.

Referenced by web::http::client::Request::sendFragment().

Here is the caller graph for this function:

◆ ~SendFragmentCommand()

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

Definition at line 60 of file SendFragmentCommand.cpp.

60 {
61 delete[] chunk;
62 }

References chunk.

Member Function Documentation

◆ execute()

bool web::http::client::commands::SendFragmentCommand::execute ( Request request)
overridevirtual

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

Definition at line 64 of file SendFragmentCommand.cpp.

64 {
65 return request->executeSendFragment(chunk, chunkLen);
66 }

References chunk, chunkLen, and web::http::client::Request::executeSendFragment().

Here is the call graph for this function:

Member Data Documentation

◆ chunk

char* web::http::client::commands::SendFragmentCommand::chunk
private

Definition at line 63 of file SendFragmentCommand.h.

Referenced by execute(), SendFragmentCommand(), and ~SendFragmentCommand().

◆ chunkLen

std::size_t web::http::client::commands::SendFragmentCommand::chunkLen
private

Definition at line 64 of file SendFragmentCommand.h.

Referenced by execute(), and SendFragmentCommand().


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