code: def to_header(self):
          
          result = []
          for value, quality in self:
              if quality != 1:
                  value = '%s;q=%s' % (value, quality)
              result.append(value)
          return ','.join(result)
docs: Convert the header set into an HTTP header string.