Skip to content

AmanoTeam/httpquery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Nim library for parsing RFC 3986 URL query strings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors