* Initiate downloading the content over HTTP. * @param content The content to download. */
| 320 | * @param content The content to download. |
| 321 | */ |
| 322 | void 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. |
no test coverage detected