mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00

* 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>
12 lines
243 B
TypeScript
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;
|
|
});
|