Open aaalgo opened 7 years ago
A little web search leads to https://github.com/eidheim/Simple-Web-Server , which is a similar project with HTTPS support. It's implemented by having socket_type as a template parameter.
I met Simple-Web-Server and then served served is more attractive for me, because of its more higher level APIs. That's great for developers who know little about HTTP protocol details and want just a quick integration of REST web API. But served development seems not quite active. That's another concern.
I recently had a problem serving large images with served. The problem disappeared after I switched to Simple-Web-Server, so I didn't botther to debug. I agree that the API of Simple-Web-Server is of a lower level. I've coded up a little wrapper for it. https://github.com/aaalgo/Simple-Web-Extra
A wrapper is great. What size of your picture and the type? I'm going to server RGB png pictures of 2592 x 1944, maybe the same issue would be encountered. Have you open a detailed issue about the large images serving? Maybe it can be fixed.
Why not just run served behind a nginx reverse proxy? All in nice docker containers to boot.
+1 for feature.
Embedded SSL support would be great for service-to-service communication.
Is HTTPS support planned? Boost::asio supports SSL, so it seems to me HTTPS is not really out of reach.