MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / doGet

Function doGet

test/fetch/test_fetch_post.c:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void doGet() {
33 emscripten_fetch_attr_t attr;
34 emscripten_fetch_attr_init(&attr);
35 attr.attributes = EMSCRIPTEN_FETCH_LOAD_TO_MEMORY;
36 attr.onsuccess = onGetSuccess;
37 attr.onerror = onError;
38 emscripten_fetch(&attr, "newfile.txt");
39}
40
41void onPostSuccess(emscripten_fetch_t *fetch) {
42 printf("onPostSuccess URL=%s status=%d\n", fetch->url, fetch->status);

Callers 1

onPostSuccessFunction · 0.85

Calls 2

emscripten_fetchFunction · 0.85

Tested by

no test coverage detected