MCPcopy
hub / github.com/puma/puma-dev / ServeTLS

Method ServeTLS

dev/http_linux.go:8–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6)
7
8func (h *HTTPServer) ServeTLS() error {
9 certCache := NewCertCache()
10
11 tlsConfig := &tls.Config{
12 GetCertificate: certCache.GetCertificate,
13 }
14
15 serv := http.Server{
16 Addr: h.TLSAddress,
17 Handler: h,
18 TLSConfig: tlsConfig,
19 }
20
21 return serv.ListenAndServeTLS("", "")
22}
23
24func (h *HTTPServer) Serve() error {
25 serv := http.Server{

Callers 2

mainFunction · 0.95
mainFunction · 0.95

Calls 1

NewCertCacheFunction · 0.85

Tested by

no test coverage detected