Re: [qooxdoo-devel] Attaching data to the headers of PUT qx.io.rest.Resource

2012-01-11 Thread Tristan Koch
Hi, with configureRequest you can, but as you've written that’s not very elegant. If you need the second parameter but want to avoid master, you could monkey patch your copy of qooxdoo. Here is the commit that introduced the new behavior: https://github.com/qooxdoo/qooxdoo/commit/3006cada36f7b9

Re: [qooxdoo-devel] Attaching data to the headers of PUT qx.io.rest.Resource

2012-01-10 Thread aditya siram
Hi all, I am trying to use the qx.io.rest.Resource class to "PUT" some data to the server. The problem is that the only way I can currently (in qooxdoo 1.6) attach a payload to the request is the add a parameter to the map like : qx.io.rest.Resource.put({data : "hello world"}); The problem is that

Re: [qooxdoo-devel] Attaching data to the headers of PUT qx.io.rest.Resource

2012-01-04 Thread Tristan Koch
Hi Deech, by headers I assume you mean the request body? With qooxdoo 1.6, and if your server expects JSON, you can set the Content-Type of the request’s body to "application/json" and provide the data as part of the parameters hash. Parameters with placeholders associated end up in the URL, th

[qooxdoo-devel] Attaching data to the headers of PUT qx.io.rest.Resource

2012-01-03 Thread aditya siram
Hi all, I would like to attach data to a PUT request of qx.io.rest.Resource. The only way I can think to do this is using the configureRequest(...) function like : r.configureRequest(function(req, action) { ... req.setRequestData(...) ...}); just before calling qx.io.rest.Resource.put(); It would