OpenTTD Source
20241121-master-g67a0fccfad
|
Base socket handler for HTTP traffic. More...
#include <http.h>
Static Public Member Functions | |
static void | Connect (const std::string &uri, HTTPCallback *callback, const std::string data="") |
Connect to the given URI. More... | |
static void | HTTPReceive () |
Do the receiving for all HTTP connections. | |
|
static |
Connect to the given URI.
uri | the URI to connect to (https://.../..). |
callback | the callback to send data back on. |
data | the data we want to send. When non-empty, this will be a POST request, otherwise a GET request. |
Definition at line 93 of file http_curl.cpp.
References lock, and HTTPCallback::OnFailure().
Referenced by ClientNetworkContentSocketHandler::DownloadSelectedContentHTTP().