Skip to content

onReadyStateChange(callback, arg)

OverEasy edited this page Feb 20, 2018 · 2 revisions

onReadyStateChange(callback, arg)

Set a callback for ready state change.

The callback is defined as:

typedef std::function<void(void*, asyncHTTPrequest*, int readyState)> readyStateChangeCB;

The callback will be made for any subsequent change in readyState except the implicit change when opening a new request.