I have a specific line of code in my program that sets the REST URL:
this._restUrl = "http://" + this._info.host + "/app/rest/";
However, I am facing an issue when trying to implement SSL. I need help with converting this into a statement that can work with both http and https protocols. Currently, it works fine with http.