MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / DownloadSelectedContentHTTP

Method DownloadSelectedContentHTTP

src/network/network_content.cpp:322–332  ·  view source on GitHub ↗

* Initiate downloading the content over HTTP. * @param content The content to download. */

Source from the content-addressed store, hash-verified

320 * @param content The content to download.
321 */
322void ClientNetworkContentSocketHandler::DownloadSelectedContentHTTP(const ContentIDList &content)
323{
324 std::string content_request;
325 for (const ContentID &id : content) {
326 format_append(content_request, "{}\n", id);
327 }
328
329 this->http_response_index = -1;
330
331 NetworkHTTPSocketHandler::Connect(NetworkContentMirrorUriString(), this, std::move(content_request));
332}
333
334/**
335 * Initiate downloading the content over the fallback protocol.

Callers 1

Calls 2

format_appendFunction · 0.85

Tested by

no test coverage detected