code: function parseLinkHeader (link) {
    if (!link) {
      return {}
    }
  
    let linkexp = /<[^>]*>\s*(\s*;\s*[^\(\)<>@,;:"\/\[\]\?={} \t]+=(([^\(\)<>@,;:"\/\[\]\?={} \t]+)|("[^"]*")))*(,|$)/g
    let paramexp = /[^\(\)<>@,;:"\/\[\]\?={} \t]+=(([^\(\)<>@,;:"\/\[\]\?={} \t]+)|("[^"]*"))/g
    let matches = link.match(linkexp)
    let rels = {}
  
    for (let i = 0; i < matches.length; i++) {
      let split = matches[i].split('>')
      let href = split[0].substring(1)
      let ps = split[1]
      let s = ps.match(paramexp)
  
      for (let j = 0; j < s.length; j++) {
        let p = s[j]
        let paramsplit = p.split('=')
        // var name = paramsplit[0]
        let rel = paramsplit[1].replace(/["']/g, '')
  
        if (!rels[rel]) {
          rels[rel] = []
        }
  
        rels[rel].push(href)
  
        if (rels[rel].length > 1) {
          rels[rel].sort()
        }
      }
    }
  
    return rels
  }
docs: Parses a Link header from an XHR HTTP Request.
  @method parseLinkHeader
  
  @param link {string} Contents of the Link response header
  
  @return {Object}