jeremycw / httpserver.h

Single header library for writing non-blocking HTTP servers in C
MIT License
1.79k stars 145 forks source link

Allow opaque data pointer on server level #35

Closed ioppermann closed 4 years ago

ioppermann commented 4 years ago

If the server is embedded in another application, this allows the handler to access an application specific context.

jeremycw commented 4 years ago

I've actually added the exact same functions in a local branch as I am also playing around with embedding it. Thanks for the contributions!

ioppermann commented 4 years ago

Thanks a lot for this server. It made my day 😃 No additional dependency of a clunky HTTP library to my project.