This is a server-oriented HTTP request parser. The API is modeled after Joyent's http-parser, with modifications (for speed, request-only, and other decisions).
- Callback-based API (
on_header
,on_url
,on_body
, with notifications likeon_headers_complete
) - No copies or allocations (con: edits memory passed)
Documentation pending, especially as it is still in heavy, breaking development.
Using the HTTP request given by fast-http, we aim to outperform the following HTTP C parsers:
Right now (though it is without most safety checking), on a 2013 Macbook Pro, I'm getting about 2,000,000-1,900,000 requests parsed per second.