|
STATE_OPENED
|
|
Constant value representing that the request is being sent to the server, waiting for reply
|
|
STATE_CONNECTED
|
|
Constant value representing that the request has been received and a response is available.
|
|
STATE_FETCHING
|
|
Constant value representing that the response is being fetched from the server.
|
|
STATE_DONE
|
|
Constant value representing that the entire response has been read.
|
|
STATE_ERROR
|
|
Constant value representing that an error occurred and the connection has been closed.
|
|
STATE_CLOSED
|
|
Constant value representing that connection has been closed and resources have been released.
|
|
EVENT_CONNECTED
|
|
Event fired when the server has received the request and a response is available.
|
|
EVENT_DONE
|
|
Event fired when the entire response has been read and is available.
|
|
EVENT_ERROR
|
|
Event fired when an error has occurred.
|
|
state
|
|
The current state of the connection, as specified by the above constants
|