I'm a big fan of Rack, and I've used it to build several lightweight web apps over the past few years. I've been curious for a while if something similar exists for C++. I've spent quite a bit of time searching Google and come up empty-handed. It doesn't help that I find Rack hard to describe. Its tagline is "A Ruby Webserver Interface". Searching for {c++ "webserver interface"}, I've found things that do much more than I want, like wt, and I've found suggestions to use FastCGI directly. I feel like Rack fits squarely between these two options.
I'm not sure if I'm having trouble finding a C++ analogue to Rack because no such thing exists or because I'm just using poor search terms.
Is there a close C++ analogue to Rack? If not, is there a library or small set of libraries that can do most of the lower-level, error-prone stuff for me, but still leave me with the level of control that Rack does?
You might take a look at cpp-netlib. It gives a fairly low level view of http (both client and server side), but high enough that you aren't constantly dealing with lowest level networking apis.
Here are the best options I've found so far:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With