src/net/authV2.js
/**
     * Set the host, path, and query parameters via a URL string.
     *
     * @param {string} url the URL value to use
     * @returns {module:net~AuthorizationV2Builder} this object
     */
Set the host, path, and query parameters via a URL string.
@param {string} url the URL value to use
@returns {module:net~AuthorizationV2Builder} this object
Set the host path and query parameters via a URL string . @param { string } url the URL value to use @returns { module : net~AuthorizationV2Builder } this object
url(url) {
        const uri = uriParse(url);
        let host = uri.host;
        if ( uri.port && (((uri.scheme === 'https' || uri.scheme === 'wss') && uri.port !== 443) 
                || ((uri.scheme === 'http' || uri.scheme === 'ws') && uri.port !== 80)) ) {
            host += ':' + uri.port;
        }
        if ( uri.query ) {
            this.queryParams(urlQueryParse(uri.query));
        }
        return this.host(host).path(uri.path);
    }
url ( url ) { const uri = uriParse ( url ) ; let host = uri . host ; if ( uri . port && ( ( ( uri . scheme === 'https' || uri . scheme === 'wss' ) && uri . port !== 443 ) || ( ( uri . scheme === 'http' || uri . scheme === 'ws' ) && uri . port !== 80 ) ) ) { host += ':' + uri . port ; } if ( uri . query ) { this . queryParams ( urlQueryParse ( uri . query ) ) ; } return this . host ( host ) . path ( uri . path ) ; }
Set the host, path, and query parameters via a URL string.
Set the host path and query parameters via a URL string .