This repository has been archived by the owner on Feb 4, 2023. It is now read-only.
Replies: 1 comment
-
When creating the request, you provide the ready state callback function: in this callback method, you only need to handle the "done" state. in case of a timeout, the http code will have value -11.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Clearly there is a timeout capability in AsyncHTTPRequest_Generic, which is set via the method setTimeout() on a request basis. There is also an enum with error codes that include:
#define HTTPCODE_TIMEOUT (-11)
so it appears that a timeout is handled as an error.
I am at a point now where I'd like to incorporate error handling functionality in my HTTP code. Thus far, I am unable to locate any examples or explanation of how to do this.
If there is anyone who knows how to do this, I'd be appreciative if you could share an example.
Beta Was this translation helpful? Give feedback.
All reactions