MCPcopy
hub / github.com/gin-gonic/gin / RunTLS

Function RunTLS

ginS/gins.go:143–145  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
143func 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)

Callers

nothing calls this directly

Calls 1

RunTLSMethod · 0.80

Tested by

no test coverage detected