mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
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>
This commit is contained in:
committed by
Vasil Trifonov
parent
a311a922b5
commit
e293367dfc
@@ -1010,6 +1010,8 @@ export const Http: {
|
||||
export interface HttpContent {
|
||||
raw: any;
|
||||
|
||||
toArrayBuffer: () => ArrayBuffer;
|
||||
|
||||
toFile: (destinationFilePath?: string) => File;
|
||||
|
||||
toImage: () => Promise<ImageSource>;
|
||||
@@ -1021,7 +1023,7 @@ export interface HttpContent {
|
||||
|
||||
// @public
|
||||
export interface HttpRequestOptions {
|
||||
content?: string | FormData;
|
||||
content?: string | FormData | ArrayBuffer;
|
||||
|
||||
dontFollowRedirects?: boolean;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user