code: def get_value(value):
      
      v = Value()
      if not value:
          raise errors.HeaderParseError("Expected value but found end of string")
      leader = None
      if value[0] in CFWS_LEADER:
          leader, value = get_cfws(value)
      if not value:
          raise errors.HeaderParseError("Expected value but found "
                                        "only {}".format(leader))
      if value[0] == '"':
          token, value = get_quoted_string(value)
      else:
          token, value = get_extended_attribute(value)
      if leader is not None:
          token[:0] = [leader]
      v.append(token)
      return v, value
docs: quoted-string / attribute