Re:New Python REST API and CLI micro-framework
by timothycrosley on Friday February 19, 2016 @11:38AM
(#11134524)
https://github.com/timothycrosley/hug/blob/develop/examples/...
[ Parent
| on HN ]
Re:New Python REST API and CLI micro-framework
by raarts on Friday February 19, 2016 @05:00PM
(#11136962)
Is there a https example? Personally I think all examples online should use ssl by default these days. http should be banned altogether.
Re:New Python REST API and CLI micro-framework
by timothycrosley on Friday February 19, 2016 @05:49PM
(#11137335)
That's not how things work when using any WSGI based framework, the SSL part should be handled by either uwsgi / gunicorn or nginx. Development servers (hug or Flask or any other) should basically never be used directly. Examples can, and should be done using HTTP to allow local testing.