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 32 of file SendFragmentCommand.h.

Constructor & Destructor Documentation

◆ SendFragmentCommand()

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

◆ ~SendFragmentCommand()

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

Definition at line 38 of file SendFragmentCommand.cpp.

38 {
39 delete[] chunk;
40 }

Member Function Documentation

◆ execute()

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

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

Definition at line 42 of file SendFragmentCommand.cpp.

42 {
43 return request->executeSendFragment(chunk, chunkLen);
44 }

Member Data Documentation

◆ chunk

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

Definition at line 41 of file SendFragmentCommand.h.

◆ chunkLen

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

Definition at line 42 of file SendFragmentCommand.h.


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