| 114 | } |
| 115 | |
| 116 | EMSCRIPTEN_KEEPALIVE void Http_OnUpdateProgress(int reqID, int read, int total) { |
| 117 | int idx = RequestList_Find(&workingReqs, reqID); |
| 118 | if (idx == -1 || !total) return; |
| 119 | |
| 120 | workingReqs.entries[idx].progress = (int)(100.0f * read / total); |
| 121 | } |
| 122 | |
| 123 | EMSCRIPTEN_KEEPALIVE void Http_OnFinishedAsync(int reqID, void* data, int len, int status) { |
| 124 | struct HttpRequest* req; |
nothing calls this directly
no test coverage detected