Standardize the entity body naming convention for dojo.xhr requests
The exposure of dojo.xhr in 1.1 was great, but I think its API (as well as that of rawXhrPut and rawXhrPost) could be a little more consistent and flexible if we checked for 'data' versus 'putData' and 'postData' in the requests when hasBody is set to be true.
Although this seems like an API change, it could be implemented in the current code base with FIXMEs left in place to remove putData and postData support as of 2.0 (which would be warts at that point.)
Change History (3)
Milestone: |
tbd →
future
|
Owner: |
changed from anonymous to James Burke
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
(In [17469]) Fixes #9219, #8649, #7833 and #8724: allow publication of IO pipeline topics, add dojo.fieldToObject (thanks to foobarfighter, CLA on file), allow generic args.rawBody for setting HTTP request bodies, and if hasBody is not passed to dojo.xhr, make an intelligent guess as to whether the query should be in the http body or as a query string. \!strict for dojo.io.script code has not side effects warning, but it is ok.