You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
Send a HTTP request uses given headers and body, and return a Promise.
29
-
30
-
#### url:`string` Required
31
-
HTTP request destination url.
32
-
#### headers:`object` (Optional)
33
-
Headers of HTTP request, value of headers should be `stringified`.
34
-
#### body:`string` (Optional)
35
-
Body of the HTTP request, body MUST be a BASE64 string, this string will be converted into byte array in native code.
36
-
37
-
### FetchBlobResponse
38
-
39
-
When `fetch` success, it resolve a `FetchBlobResponse` object as first argument. `FetchBlobResponse` object has the following methods (these method are synchronous, so you might take quite a performance impact if the file is big):
40
-
41
-
#### base64():string
42
-
returns base64 string of response data (done in native context)
43
-
#### json():object
44
-
returns json parsed object (done in js context)
45
-
#### text():string
46
-
returns decoded base64 string (done in js context)
Send a HTTP request uses given headers and body, and return a Promise.
83
+
84
+
#### url:`string` Required
85
+
HTTP request destination url.
86
+
#### headers:`object` (Optional)
87
+
Headers of HTTP request, value of headers should be `stringified`.
88
+
#### body:`string` (Optional)
89
+
Body of the HTTP request, body MUST be a BASE64 string, this string will be converted into byte array in native code.
90
+
91
+
### FetchBlobResponse
92
+
93
+
When `fetch` success, it resolve a `FetchBlobResponse` object as first argument. `FetchBlobResponse` object has the following methods (these method are synchronous, so you might take quite a performance impact if the file is big):
94
+
95
+
#### base64():string
96
+
returns base64 string of response data (done in native context)
97
+
#### json():object
98
+
returns json parsed object (done in js context)
99
+
#### text():string
100
+
returns decoded base64 string (done in js context)
0 commit comments