| 107 | } // namespace |
| 108 | |
| 109 | bool launcherHttpGetToString(const char *url, String &out, size_t maxSize) { |
| 110 | out = ""; |
| 111 | StringSink sink = {&out, maxSize}; |
| 112 | LauncherHttpResponse response; |
| 113 | return launcherHttpGetStream(url, stringChunkCb, &sink, &response) && response.status == 200; |
| 114 | } |
| 115 | |
| 116 | bool launcherHttpGetStream( |
| 117 | const char *url, LauncherHttpChunkCb cb, void *ctx, LauncherHttpResponse *response, const char *headerKey, |
no test coverage detected