TLS can be used as an argument for the `Run` method. It will start the Application's secure server. Use it like you used to use the http.ListenAndServeTLS function. Addr should have the form of [host]:port, i.e localhost:443 or :443. "certFileOrContents" & "keyFileOrContents" should be filenames w
(addr string, certFileOrContents, keyFileOrContents string, hostConfigs ...host.Configurator)
| 932 | // |
| 933 | // See `Run` for more. |
| 934 | func TLS(addr string, certFileOrContents, keyFileOrContents string, hostConfigs ...host.Configurator) Runner { |
| 935 | return func(app *Application) error { |
| 936 | return app.NewHost(&http.Server{Addr: addr}). |
| 937 | Configure(hostConfigs...). |
| 938 | ListenAndServeTLS(certFileOrContents, keyFileOrContents) |
| 939 | } |
| 940 | } |
| 941 | |
| 942 | // AutoTLS can be used as an argument for the `Run` method. |
| 943 | // It will start the Application's secure server using |
nothing calls this directly
no test coverage detected