[jbosstools-issues] [JBoss JIRA] (JBDS-4044) Use angular $http service instead of node request module
Denis Golovin (JIRA)
issues at jboss.org
Tue Sep 6 04:07:01 EDT 2016
Denis Golovin created JBDS-4044:
-----------------------------------
Summary: Use angular $http service instead of node request module
Key: JBDS-4044
URL: https://issues.jboss.org/browse/JBDS-4044
Project: Red Hat JBoss Developer Studio (devstudio)
Issue Type: Enhancement
Components: platform-installer
Affects Versions: 10.2.0.AM1
Reporter: Denis Golovin
Assignee: Denis Golovin
Since April $http service seems to support progress reporting for http requests:
1. See httpspec.js in this [commit|https://github.com/angular/angular.js/commit/01b18450882da9bb9c903d43c0daddbc03c2c35d];
2. XMLHTTPRequest documentation [here|https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest].
Questions:
1. Does it support redirects?
2. How authentication is supported?
Benefits:
1. Native browser service, so probably should be working faster;
2. Proxy settings picked up from system settings, so there is no need to set up environment variables before running the installer.
Drawbacks:
1. Proxy errors are not detectable (?) It just printed out to console without providing info trough returning error parameter for callback;
2. No third party multi-threaded downloaders that would support restarting download from the position where it failed.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list