Method: Rack::QueryParser#parse_nested_query
- Defined in:
- lib/rack/query_parser.rb
#parse_nested_query(qs, separator = nil) ⇒ Object
parse_nested_query expands a query string into structural types. Supported types are Arrays, Hashes and basic value types. It is possible to supply query strings with parameters of conflicting types, in this case a ParameterTypeError is raised. Users are encouraged to return a 400 in this case.
109 110 111 112 113 114 115 116 117 |
# File 'lib/rack/query_parser.rb', line 109 def parse_nested_query(qs, separator = nil) params = make_params each_query_pair(qs, separator) do |k, v| _normalize_params(params, k, v, 0) end return params.to_h end |