summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp/server.go')
-rw-r--r--modules/caddyhttp/server.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go
index c665e29..62c0fd9 100644
--- a/modules/caddyhttp/server.go
+++ b/modules/caddyhttp/server.go
@@ -24,6 +24,7 @@ import (
"net/url"
"runtime"
"strings"
+ "sync"
"time"
"github.com/caddyserver/caddy/v2"
@@ -139,7 +140,12 @@ type Server struct {
accessLogger *zap.Logger
errorLogger *zap.Logger
- h3server *http3.Server
+ server *http.Server
+ h3server *http3.Server
+ addresses []caddy.NetworkAddress
+
+ shutdownAt time.Time
+ shutdownAtMu *sync.RWMutex
}
// ServeHTTP is the entry point for all HTTP requests.