#include <request.h>
Public Member Functions | |
ErrorResponse (Request *rq, const Common::String &resp) | |
ErrorResponse (Request *rq, bool interrupt, bool failure, const Common::String &resp, long httpCode) | |
Public Attributes | |
Request * | request |
bool | interrupted |
bool | failed |
Common::String | response |
long | httpResponseCode |
ErrorResponse is a struct to be returned from Request to user's failure callbacks.
It keeps a Request pointer together with some useful information fields, which would explain why failure callback was called.
<interrupted> flag is set when Request was interrupted, i.e. finished by user with finish() call.
<failed> flag is set when Request has failed because of some error (bad server response, for example).
<response> contains server's original response.
<httpResponseCode> contains server's HTTP response code.