RunTLS attaches to a http.Server and starts listening and serving HTTPS requests. It is a shortcut for http.ListenAndServeTLS(addr, certFile, keyFile, router) Note: this method will block the calling goroutine indefinitely unless an error happens.
(addr, certFile, keyFile string)
| 141 | // It is a shortcut for http.ListenAndServeTLS(addr, certFile, keyFile, router) |
| 142 | // Note: this method will block the calling goroutine indefinitely unless an error happens. |
| 143 | func RunTLS(addr, certFile, keyFile string) (err error) { |
| 144 | return engine().RunTLS(addr, certFile, keyFile) |
| 145 | } |
| 146 | |
| 147 | // RunUnix attaches to a http.Server and starts listening and serving HTTP requests |
| 148 | // through the specified unix socket (i.e. a file) |