Skip to content

Conversation

@mungerd
Copy link

@mungerd mungerd commented Sep 17, 2014

JSONService.sendRequest and JSONService.sendNotify used to return a request ID
and an integer, respectively.
This patch adds a return_object' flag to the JSONService, ServiceProxy and JSONProxy constructors. When ̀return_object' is True, JSONService.sendRequest
and JSONService.sendNotify will append the request object to their return
value.
This allows to access the JavaScript XMLHttpRequest object, on which the abort() method can be called in order to interrupt a very long request.

Resolves #796

Should be backward compatible with existing code.

JSONService.sendRequest and JSONService.sendNotify used to return a request ID
and an integer, respectively.
This patch adds a `return_object' flag to the JSONService, ServiceProxy and
JSONProxy constructors.  When ̀`return_object' is True, JSONService.sendRequest
and JSONService.sendNotify will append the request object to their return
value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot access the XMLHttpRequest object

1 participant