brendanashworth / parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

http parser

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).

Features

  • Callback-based API (on_header, on_url, on_body, with notifications like on_headers_complete)
  • No copies or allocations (con: edits memory passed)

API

Documentation pending, especially as it is still in heavy, breaking development.

Comparison

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.

About

License:MIT License


Languages

Language:C 96.2%Language:Makefile 3.8%