function parseURL(url) {
    var parsedUrl = Url.parse(url),
        container = {};

    container.port        = parsedUrl.port      || ((parsedUrl.protocol === 'https') ? 443 : 80);
    container.queryparms  = parsedUrl.query     ? '?' + parsedUrl.query :  '';
    container.hash        = parsedUrl.hash      || '';
    container.path        = (parsedUrl.pathname || '/') + container.queryparms + container.hash;

    return mergeAttributes(parsedUrl, container);
  }
/**
   * Parse an URL an add some needed properties
   */
Parse an URL an add some needed properties
Parse an URL an add some needed properties
function parseURL(url) {
    var parsedUrl = Url.parse(url),
        container = {};
    container.port        = parsedUrl.port      || ((parsedUrl.protocol === 'https') ? 443 : 80);
    container.queryparms  = parsedUrl.query     ? '?' + parsedUrl.query :  '';
    container.hash        = parsedUrl.hash      || '';
    container.path        = (parsedUrl.pathname || '/') + container.queryparms + container.hash;
    return mergeAttributes(parsedUrl, container);
  }
function parseURL ( url ) { var parsedUrl = Url . parse ( url ) , container = { } ; container . port = parsedUrl . port || ( ( parsedUrl . protocol === 'https' ) ? 443 : 80 ) ; container . queryparms = parsedUrl . query ? '?' + parsedUrl . query : '' ; container . hash = parsedUrl . hash || '' ; container . path = ( parsedUrl . pathname || '/' ) + container . queryparms + container . hash ; return mergeAttributes ( parsedUrl , container ) ; }
Parse an URL an add some needed properties
Parse an URL an add some needed properties