code: def links(self):
          
          ret = []
          linkheader = self.getheader('link')
          if not linkheader:
              return ret
          for i in linkheader.split(','):
              try:
                  url, params = i.split(';', 1)
              except ValueError:
                  url, params = i, ''
              link = {}
              link['url'] = url.strip('''<> '"''')
              for param in params.split(';'):
                  try:
                      k, v = param.split('=')
                  except ValueError:
                      break
                  link[k.strip(''' '"''')] = v.strip(''' '"''')
              ret.append(link)
          return ret
docs: Links parsed from HTTP Link header