Skip to content

philip-wernersbach/nim-picohttpparser

Repository files navigation

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.