OpenTTD Source
20241121-master-g67a0fccfad
|
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. More... | |
virtual void | OnReceiveData (std::unique_ptr< char[]> data, size_t length)=0 |
We're receiving data. More... | |
virtual bool | IsCancelled () const =0 |
Check if there is a request to cancel the transfer. More... | |
virtual | ~HTTPCallback ()=default |
Silentium. | |
|
pure virtual |
Check if there is a request to cancel the transfer.
Implemented in NetworkSurveyHandler, and ClientNetworkContentSocketHandler.
Referenced by HTTPThreadSafeCallback::HandleQueue().
|
pure virtual |
An error has occurred and the connection has been closed.
Implemented in NetworkSurveyHandler, and ClientNetworkContentSocketHandler.
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 NetworkSurveyHandler, and ClientNetworkContentSocketHandler.
Referenced by HTTPThreadSafeCallback::HandleQueue().