Thanks for the great explanation Jess. That makes sense. The only reason I was asking/concerned was that I was working on implementing proxy support in KalturaClientBase.js and found that the implementation for proxy support in the http module vs. https module are significantly different.
I wonder if it should be documented in the client lib that if https module is to be used (with a proxy), the code will need to be modified. Alternatively, the proxy code could be modified to conditionally use one implementation or the other based on which module is loaded.