2015-06-15 111 views
0

有没有人知道如何在飞镖中做出“PUT”请求?飞镖中的PUT请求

我这样做,但我不知道如何继续:

HttpRequest request =new HttpRequest(); 
request.open("PUT", url); 
... 

感谢。

回答

2
var resp = await HttpRequest.request('http://someurl.com', 
    method: 'PUT', sendData: data); 
// Do something with the response. 

HttpRequest.request('http://someurl.com', 
    method: 'PUT', sendData: data) 
.then((HttpRequest resp) { 
    // Do something with the response. 
}); 
+0

如何传递一个或多个文件? – MalumaDev

+0

听起来像一个不同的问题。可能http://stackoverflow.com/questions/25742113或http://stackoverflow.com/questions/25025084 –