mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
readme updated
This commit is contained in:
@@ -56,15 +56,15 @@
|
|||||||
}).fail(function (e) { console.log(e) });
|
}).fail(function (e) { console.log(e) });
|
||||||
|
|
||||||
// PUT request
|
// PUT request
|
||||||
var postData = YOUR_IMAGE_DATA;
|
var data = YOUR_IMAGE_DATA;
|
||||||
http.request({
|
http.request({
|
||||||
url: "http://httpbin.org/put",
|
url: "http://httpbin.org/put",
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "image/jpg",
|
"Content-Type": "image/jpg",
|
||||||
"Content-Length": postData.length() + ""
|
"Content-Length": data.length() + ""
|
||||||
},
|
},
|
||||||
content: postData
|
content: data
|
||||||
}).then(function (r) {
|
}).then(function (r) {
|
||||||
console.log(r.content.toString())
|
console.log(r.content.toString())
|
||||||
}).fail(function (e) { console.log(e) });
|
}).fail(function (e) { console.log(e) });
|
||||||
|
|||||||
Reference in New Issue
Block a user