Skip to content

Commit e293367

Browse files
charsleysavtrifonov
andcommitted
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>
1 parent a311a92 commit e293367

23 files changed

Lines changed: 1212 additions & 449 deletions

File tree

api-reports/NativeScript.api.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,8 @@ export const Http: {
10101010
export interface HttpContent {
10111011
raw: any;
10121012

1013+
toArrayBuffer: () => ArrayBuffer;
1014+
10131015
toFile: (destinationFilePath?: string) => File;
10141016

10151017
toImage: () => Promise<ImageSource>;
@@ -1021,7 +1023,7 @@ export interface HttpContent {
10211023

10221024
// @public
10231025
export interface HttpRequestOptions {
1024-
content?: string | FormData;
1026+
content?: string | FormData | ArrayBuffer;
10251027

10261028
dontFollowRedirects?: boolean;
10271029

nativescript-core/fetch/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014-2015 GitHub, Inc.
1+
Copyright (c) 2014-2016 GitHub, Inc.
22

33
Permission is hereby granted, free of charge, to any person obtaining
44
a copy of this software and associated documentation files (the

0 commit comments

Comments
 (0)