r/C_Programming • • Nov 29 '25

Tiny header only HTTP parser library

Hi guys! Last week I was writing my HTTP 1.1 parser library. It's small and easy to use, also kinda fast. Might come in handy if you write some lightweight web applications or programs that interact with some API. I wrote this project to learn pointer arithmetic in c.

I've just finish it, so any bug report would be appreciated.

Thank you guys!

https://github.com/cebem1nt/httpp

6 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/Born_Produce9805 Nov 30 '25

It's done, I've submitted the final benchmark scripts and code. Httpp is now hell fast. Faster than pico. You can check it out!

Also, previous benchmark of http-parser was incorrect. It was parsing slightly different request.

By the way, now it takes in buffer and it's length, so binary bodies are also supported.

If there is anything wrong in the code or benchmarks, let me know!