mirror of
https://github.com/philip-wernersbach/nim-picohttpparser
synced 2026-01-15 08:31:39 +00:00
No description
|
|
||
|---|---|---|
| picohttpparser | ||
| tests | ||
| vendor | ||
| .gitignore | ||
| .gitmodules | ||
| picohttpparser.nim | ||
| picohttpparser.nimble | ||
| README.md | ||
nim-picohttpparser
Nim binding for picohttpparser.
Setup
Install picohttpparser with Nimble and you're ready to go.
Usage
To use the low level picohttpparser API binding, import picohttpparser/api
in your program, and use parseRequest or tryParseRequest.
Converter procs toStringTableRef and toHttpHeaders are provided to
convert picohttpparser's native seq[phr_header] header type to types that
are often used in Nim libraries.
TODO
A high level picohttpparser API named picohttpparser would be nice. Patches
welcome!
License
This project is licensed under the same license as picohttpparser, which is dual-licensed under the Perl License or the MIT License.