方法
    
  
  
  
    
    
    
      
      常量
| COMMON_SEP | = | { ";" => /; */n, ";," => /[;,] */n, "&" => /& */n, "&;" => /[&;] */n } | 
| DEFAULT_SEP | = | /& */n | 
类公共方法
each_pair(s, separator = nil) 链接
来源: 显示 | 在 GitHub 上
# File actionpack/lib/action_dispatch/http/query_parser.rb, line 29 def self.each_pair(s, separator = nil) return enum_for(:each_pair, s, separator) unless block_given? s ||= "" splitter = if separator COMMON_SEP[separator] || /[#{separator}] */n else DEFAULT_SEP end s.split(splitter).each do |part| next if part.empty? k, v = part.split("=", 2) k = URI.decode_www_form_component(k) v &&= URI.decode_www_form_component(v) yield k, v end nil end
strict_query_string_separator() 链接
来源: 显示 | 在 GitHub 上
# File actionpack/lib/action_dispatch/http/query_parser.rb, line 11 def self.strict_query_string_separator ActionDispatch.deprecator.warn <<~MSG The `strict_query_string_separator` configuration is deprecated have no effect and will be removed in Rails 8.2. MSG @strict_query_string_separator end
strict_query_string_separator(value) 链接
来源: 显示 | 在 GitHub 上
# File actionpack/lib/action_dispatch/http/query_parser.rb, line 18 def self.strict_query_string_separator=(value) ActionDispatch.deprecator.warn <<~MSG The `strict_query_string_separator` configuration is deprecated have no effect and will be removed in Rails 8.2. MSG @strict_query_string_separator = value end