httpquery
A Nim library for parsing RFC 3986 URL query strings
Summary
| Latest Version | 0.1 |
|---|---|
| License | LGPL-3.0 |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-09-05 07:26 |
Tags
Authors
- kartatz
Installation
nimble install httpquery
choosenim install httpquery
git clone https://github.com/AmanoTeam/httpquery
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| httpquery | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 1.4.0 | No |
Source
| Repository | https://github.com/AmanoTeam/httpquery |
|---|---|
| Homepage | https://github.com/AmanoTeam/httpquery |
| Registry Source | nimble_official |
README
httpquery
A Nim library for parsing RFC 3986 URL query strings.
Installation
Install using nimble:
nimble install --accept httpquery
Usage:
Parse an arbitrary query string:
import httpquery
let q = newHttpQuery()
q.parseString("key=value&anotherkey=anothervalue")
assert q.getString("key") == "value"
assert q.getString("anotherkey") == "anothervalue"
Dynamically create query strings:
import httpquery
let q = newHttpQuery()
q.addString("name", "John Smith")
q.addInt("age", 35)
q.addFloat("height", 1.75)
q.addUInt("score", 1337'u)
echo q
# Output: name=John%20Smith&age=35&height=1.750000&score=1337
See the documentation for more info.