No description
Find a file
Philip Wernersbach 2e1e6d9c00
Merge pull request #2 from termermc/master
Reformat for modern nimble project structure; include picohttpparser as submodule
2023-04-15 22:29:36 -07:00
picohttpparser use vendor dir for submodule 2023-04-15 20:53:54 -04:00
tests add test 2023-04-13 00:05:40 -04:00
vendor fix missing submodule 2023-04-15 20:58:36 -04:00
.gitignore Initial commit 2016-08-20 19:06:21 -04:00
.gitmodules fix missing submodule 2023-04-15 20:58:36 -04:00
picohttpparser.nim add test 2023-04-13 00:05:40 -04:00
picohttpparser.nimble make sure vendor is included 2023-04-15 20:55:18 -04:00
README.md reformat for modern nimble project structure 2023-04-12 21:56:00 -04:00

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.