OpenTTD Source 20241224-master-gee860a5c8e
|
Callback for when the HTTP handler has something to tell us. More...
#include <http.h>
Public Member Functions | |
virtual void | OnFailure ()=0 |
An error has occurred and the connection has been closed. | |
virtual void | OnReceiveData (std::unique_ptr< char[]> data, size_t length)=0 |
We're receiving data. | |
virtual bool | IsCancelled () const =0 |
Check if there is a request to cancel the transfer. | |
virtual | ~HTTPCallback ()=default |
Silentium. | |
|
pure virtual |
Check if there is a request to cancel the transfer.
Implemented in ClientNetworkContentSocketHandler, and NetworkSurveyHandler.
Referenced by HTTPThreadSafeCallback::HandleQueue().
|
pure virtual |
An error has occurred and the connection has been closed.
Implemented in ClientNetworkContentSocketHandler, and NetworkSurveyHandler.
Referenced by NetworkHTTPSocketHandler::Connect(), and HTTPThreadSafeCallback::HandleQueue().
|
pure virtual |
We're receiving data.
data | the received data, nullptr when all data has been received. |
length | the amount of received data, 0 when all data has been received. |
Implemented in ClientNetworkContentSocketHandler, and NetworkSurveyHandler.
Referenced by HTTPThreadSafeCallback::HandleQueue().