Open friedbrice opened 1 year ago
FWIW I haven't felt a desperate need because it's just a matter of calling warp-tls
on top of scottyApp
, and in most cases handling TLS is a reverse proxy's responsibility. However, I don't strongly object to adding a function that launch a server with TLS
in most cases handling TLS is a reverse proxy's responsibility
This is a compelling point to me, yeah.
it's just a matter of calling
warp-tls
on top ofscottyApp
This is a less-compelling point to me, since I typically think that Scotty users shouldn't have to know all that much about Warp, that Scotty should be taking care of that for them. I'm of the opinion that users shouldn't have to add warp
as an explicit dependency in order to use the fully functionality that Scotty offers.
Indeed, given that scotty supports WAI middlewares via the middleware
function, perhaps there should be a function to enable TLS in the same vein
Is there a reason that TLS is shunted off to its own package and isn't supported out of the box?