MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / launcherHttpGetToString

Function launcherHttpGetToString

src/idf/idf_http_client.cpp:109–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107} // namespace
108
109bool 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
116bool launcherHttpGetStream(
117 const char *url, LauncherHttpChunkCb cb, void *ctx, LauncherHttpResponse *response, const char *headerKey,

Callers 1

getInfoFunction · 0.85

Calls 1

launcherHttpGetStreamFunction · 0.85

Tested by

no test coverage detected