Network.request Questions

Sorry to cross post, but I really need to know the answers to these questions in order to make progress. I asked this in the API comments page and didn’t get an answer perhaps that was the wrong place to ask (sorry) :

Is there a recommended limit on simultaneous Async HTTP requests?

Is it possible to cancel an outstanding network.request in the event that the user has moved out of the state which requires the download?

Is it possible to poll the state of the request to determine the progress (how many bytes received vs total number of bytes to download)?

Is there an option to set a http timeout value for the request?

If the answer is “No not at the moment” - that’s ok. I’d just like to know so I can move on and figure out the design of a utility function. [import]uid: 11393 topic_id: 5583 reply_id: 305583[/import]

@Ansca: Can I please at least get a yes/no on this one - Is it possible to cancel an outstanding network.request in the event that the user has moved out of the state which requires the download? [import]uid: 11393 topic_id: 5583 reply_id: 19139[/import]

Is there a recommended limit on simultaneous Async HTTP requests?

  • There’s no recommended limit, but to be honest we haven’t stress tested it.

Is it possible to cancel an outstanding network.request in the event that the user has moved out of the state which requires the download?

  • There’s no way to cancel. If you remove the listener, then any response will be ignored however.

Is it possible to poll the state of the request to determine the progress (how many bytes received vs total number of bytes to download)?

  • Not currently.

Is there an option to set a http timeout value for the request?

  • Not currently.

Tim [import]uid: 8196 topic_id: 5583 reply_id: 19143[/import]