gocraft / web

Go Router + Middleware. Your Contexts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add SSL support

yiziz opened this issue · comments

Add SSL support
commented

Is this worth doing? It seems like it is so much simpler just to drop HTTP behind and HTTPS proxy.

I think you can add SSL using http.ListenAndServeTLS
Have a look at the ListenAndServeTLS docs.

Yeah there is nothing for this package to do in order to support SSL. Both https proxy and ListenAndServeTLS work.