ant0ine / go-json-rest-examples

Examples for go-json-rest
http://ant0ine.github.io/go-json-rest/
MIT License
195 stars 52 forks source link

how to listen on https? #16

Closed nwaycn closed 8 years ago

nwaycn commented 8 years ago

how to listen on https and use cert.pem and key.pem by openssl?

ant0ine commented 8 years ago

Go-Json-Rest offers a net/http handler that can be used for https like any other net/http handler. See this method of net/http: https://golang.org/pkg/net/http/#Server.ListenAndServeTLS