cleanup, docs
This commit is contained in:
@@ -24,17 +24,10 @@ Parsing rules:
|
||||
|
||||
Examples:
|
||||
|
||||
```cpp
|
||||
StringMap q = parse_query("alpha=1&token=a%3Db&preview&empty=");
|
||||
// q["alpha"] == "1"
|
||||
// q["token"] == "a=b"
|
||||
// q["preview"] == ""
|
||||
// q["empty"] == ""
|
||||
```
|
||||
|
||||
This is useful when you need to work with URL parameter data outside the normal request parsing flow.
|
||||
|
||||
Related:
|
||||
|
||||
- PHP: `parse_str()`
|
||||
- JavaScript / Node.js: `URLSearchParams` or Node `querystring.parse()`
|
||||
:example
|
||||
StringMap q = parse_query("name=Ada&role=admin");
|
||||
print(q["name"], "\n");
|
||||
|
||||
Reference in New Issue
Block a user