-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jhttp: make the default query parser more expressive
Instead of treating all query arguments as strings, look for simple lexical structures in the values: - Numbers (123, -6.32) - Constants: true, false, null - Quoted JSON strings: "json text in a box" - Quoted bytes (base64): 'aGVsbG8sIHdvcmxk' Other values are taken as literal strings, as written. Separate the default out into a top-level function: jhttp.ParseQuery.
- Loading branch information
1 parent
ab76d3c
commit 92ed141
Showing
1 changed file
with
125 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters