#include <wx/webrequest.h>
Result of a synchronous operation.
Public Member Functions | |
bool | operator! () const |
Returns true if the request failed. More... | |
Public Attributes | |
State | state |
The state of the request. More... | |
wxString | error |
The error message in case of a failure. More... | |
bool wxWebRequestSync::Result::operator! | ( | ) | const |
Returns true if the request failed.
Example of use:
Note that State_Unauthorized is not considered a failure and needs to be checked separately.
wxString wxWebRequestSync::Result::error |
The error message in case of a failure.
This field can also be non-empty for State_Unauthorized state.
State wxWebRequestSync::Result::state |
The state of the request.
This field can only take State_Completed, State_Failed or State_Unauthorized values for the synchronous requests.