Nim binding for picohttpparser.
Install picohttpparser
with Nimble and you're ready to go.
To use the low level picohttpparser API binding, import picohttpparser/api
in your program, and use parseRequest
or tryParseRequest
.
Converter proc
s toStringTableRef
and toHttpHeaders
are provided to
convert picohttpparser's native seq[phr_header]
header type to types that
are often used in Nim libraries.
A high level picohttpparser API named picohttpparser
would be nice. Patches
welcome!
This project is licensed under the same license as picohttpparser, which is dual-licensed under the Perl License or the MIT License.