3 ms·
> The problem is that today, it is pretty hard to write web APIs in C++ What I think is needed is mainly a library for parsing and encoding of HTTP requests an
by jstimpfle 11y ago
> The problem is that today, it is pretty hard to write web APIs in C++
What I think is needed is mainly a library for parsing and encoding of HTTP requests and responses (I don't know what there is for C/C++). But in most cases the CGI interface is good enough.
I think the model where some framework contains the main loop which drives the application is deeply flawed because the implementation will strongly depend on the framework.
The hardest part of creating an API is the design. This won't just go away with yet another framework.
- erichocean 11y ago> What I think is needed is mainly a library for parsing and encoding of HTTP requests and responses (I don't know what there is for C/C++) https://github.com/nodejs/http-parser https://github.com/nodejs/http-parser On the parser side, that's about as widely used/polished as you could hope to see.