getAgent(serverUrl) {
        let parsedUrl = new URL(serverUrl);
        return this._getAgent(parsedUrl);
    }
Gets an http agent. This function is useful when you need an http agent that handles
routing through a proxy server - depending upon the url and proxy environment variables.
@param serverUrl  The server URL where the request will be sent. For example, https://api.github.com