Skip to content

feat: add Nack::QueryParser - #70

Merged
himura467 merged 1 commit into
mainfrom
feat-query-parser
Oct 31, 2026
Merged

himura467 merged 1 commit into
mainfrom
feat-query-parser

Conversation

@himura467

Copy link
Copy Markdown
Contributor

Closes #15

  • Adds Nack::QueryParser with parse_query, parse_nested_query, build_query and build_nested_query.
  • parse_query and build_query follow WHATWG application/x-www-form-urlencoded; parse_query returns [name, value] pairs.
  • parse_nested_query and build_nested_query handle a[b], a[] and deeper names, keep malformed names flat, and raise Nack::ParamError on conflicting shapes.
  • Raises Nack::ParamError beyond param_limit (4096) or depth_limit (32).
  • Instances are frozen and shareable across Ractors.

@himura467
himura467 merged commit adacfae into main Oct 31, 2026
4 checks passed
@himura467
himura467 deleted the feat-query-parser branch October 31, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Nack::QueryParser

1 participant