VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GNet::HttpClientProtocol::Callback Struct Referenceabstract

A callback interface for GNet::HttpClientProtocol to send data and deliver content. More...

#include <ghttpclientprotocol.h>

Public Member Functions

virtual void sendHttpRequest (const std::string &)=0
 Called by the HttpClientProtocol when it needs to send a http request string. More...
 
virtual void onHttpBody (const std::string &outer_content_type, const std::string &content_type, const char *body, size_t body_size)=0
 Called on receipt of a complete response, or a multipart part. More...
 
virtual ~Callback ()
 Destructor.
 

Detailed Description

A callback interface for GNet::HttpClientProtocol to send data and deliver content.

Definition at line 50 of file ghttpclientprotocol.h.

Member Function Documentation

virtual void GNet::HttpClientProtocol::Callback::onHttpBody ( const std::string &  outer_content_type,
const std::string &  content_type,
const char *  body,
size_t  body_size 
)
pure virtual

Called on receipt of a complete response, or a multipart part.

The first parameter is the empty string for a single-part response, and the outer content-type for a multipart part.

virtual void GNet::HttpClientProtocol::Callback::sendHttpRequest ( const std::string &  )
pure virtual

Called by the HttpClientProtocol when it needs to send a http request string.


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