src/net/urlHelper.js
/**
     * Replace occurances of URL template variables with values from a parameter object.
     * 
     * URL template variables are specified as `{<em>name</em>}`. The variable
     * will be replaced by the value associated with property `name` in the
     * provided parameter object. The value will be URI encoded.
     * 
     * @param {string} template a URL template
     * @param {object} params an object whose properties should serve as template variables
     * @returns {string} the URL
     */
Replace occurances of URL template variables with values from a parameter object.

URL template variables are specified as `{name}`. The variable
will be replaced by the value associated with property `name` in the
provided parameter object. The value will be URI encoded.

@param {string} template a URL template
@param {object} params an object whose properties should serve as template variables
@returns {string} the URL
Replace occurances of URL template variables with values from a parameter object . URL template variables are specified as ` { name } ` . The variable will be replaced by the value associated with property ` name ` in the provided parameter object . The value will be URI encoded . @param { string } template a URL template @param { object } params an object whose properties should serve as template variables @returns { string } the URL
static resolveTemplateUrl(template, params) {
        return template.replace(/\{([^}]+)\}/g, function(match, variableName) {
            let variableValue = params[variableName];
            return (variableValue !== undefined ? encodeURIComponent(variableValue) : '');
        });
    }
static resolveTemplateUrl ( template , params ) { return template . replace ( / \{([^}]+)\} / g , function ( match , variableName ) { let variableValue = params [ variableName ] ; return ( variableValue !== undefined ? encodeURIComponent ( variableValue ) : '' ) ; } ) ; }
Replace occurances of URL template variables with values from a parameter object.
Replace occurances of URL template variables with values from a parameter object .