meltwater / served

A C++11 RESTful web server library
MIT License
710 stars 174 forks source link

HTTPS support #19

Open aaalgo opened 7 years ago

aaalgo commented 7 years ago

Is HTTPS support planned? Boost::asio supports SSL, so it seems to me HTTPS is not really out of reach.

aaalgo commented 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.

xoox commented 7 years ago

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.

aaalgo commented 7 years ago

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

xoox commented 7 years ago

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.

kiyoMatsui commented 4 years ago

Why not just run served behind a nginx reverse proxy? All in nice docker containers to boot.

makkarpov commented 3 years ago

+1 for feature.

Embedded SSL support would be great for service-to-service communication.