Trippin Cyril
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
trippingcyril::net::http::HTTPCallback Class Referenceabstract

Callback class for our SimpleHTTPSocket. More...

#include <SimpleHTTPSocket.h>

Inheritance diagram for trippingcyril::net::http::HTTPCallback:
[legend]
Collaboration diagram for trippingcyril::net::http::HTTPCallback:
[legend]

Public Member Functions

virtual ~HTTPCallback ()
 
virtual void OnRequestDone (unsigned short responseCode, const map< String, String > &headers, const String &response, const String &url)=0
 
virtual void OnRequestError (int errorCode, const String &url)
 
- Public Member Functions inherited from trippingcyril::ShouldDelete
virtual bool shouldDelete () const
 

Detailed Description

Callback class for our SimpleHTTPSocket.

Constructor & Destructor Documentation

virtual trippingcyril::net::http::HTTPCallback::~HTTPCallback ( )
inlinevirtual

Member Function Documentation

virtual void trippingcyril::net::http::HTTPCallback::OnRequestDone ( unsigned short  responseCode,
const map< String, String > &  headers,
const String response,
const String url 
)
pure virtual

Called if our request finished without any http parsing errors

Parameters
responseCodeThe http response code, currently all response codes will be passed to this
headersThe http response headers
responseThe actual http response, in case of binary data depend on .data() and .size()
urlThe url this is a response to
virtual void trippingcyril::net::http::HTTPCallback::OnRequestError ( int  errorCode,
const String url 
)
inlinevirtual

Called in case of any internal errors

Parameters
errorCodeOur internal error code
urlThe url this error was for
See Also
SimpleHTTPSocket::DECOMPESSION_ERROR
SimpleHTTPSocket::TIMEOUT

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