| 340 | |
| 341 | |
| 342 | int main() { |
| 343 | time_elapsed = emscripten_get_now(); |
| 344 | |
| 345 | http* http1 = new http("https://github.com", http::REQUEST_GET, "emscripten_main.zip"); |
| 346 | http1->runRequest("/emscripten-core/emscripten/archive/main.zip", http::ASYNC_THREAD); |
| 347 | |
| 348 | http* http2 = new http("https://github.com",http::REQUEST_GET, "wolfviking_master.zip"); |
| 349 | http2->runRequest("/wolfviking0/image.js/archive/master.zip", http::ASYNC_THREAD); |
| 350 | http2->abortRequest(); |
| 351 | |
| 352 | http* http3 = new http("https://raw.github.com", http::REQUEST_GET); |
| 353 | http3->runRequest("/emscripten-core/emscripten/main/LICENSE", http::ASYNC_THREAD); |
| 354 | |
| 355 | num_request++; |
| 356 | emscripten_async_call(wait_http, http1, 500); |
| 357 | num_request++; |
| 358 | emscripten_async_call(wait_http, http2, 500); |
| 359 | num_request++; |
| 360 | emscripten_async_call(wait_http, http3, 500); |
| 361 | |
| 362 | /* |
| 363 | Http* http4 = new Http("http://www.---.com",Http::REQUEST_POST); |
| 364 | http4->addValue("app","123"); |
| 365 | http4->runRequest("/test.php",Http::ASYNC_THREAD); |
| 366 | num_request ++; |
| 367 | emscripten_async_call(wait_http,http4,500); |
| 368 | */ |
| 369 | |
| 370 | emscripten_set_main_loop(wait_https, 0, 0); |
| 371 | return 0; |
| 372 | } |
nothing calls this directly
no test coverage detected