Files
NativeScript/tests/app/http/http-string-worker.ts
Stefan Andres Charsley e293367dfc feat(http): better binary support & XHR support (#7707)
* feat(http): binary upload support

* feat(http): better binary support & XHR support

* fix: linting issue

* chore: moved files from old place to the new one

* chore: Updated NativeScript.api.md

* feat(http): support both ByteBuffer and String

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
2020-01-28 15:22:32 +02:00

12 lines
243 B
TypeScript

import * as http from "@nativescript/core/http";
(<any>global).FormData = class FormData {};
declare var postMessage: any;
http.getString("https://httpbin.org/get").then(function (r) {
postMessage(r);
}, function (e) {
throw e;
});