mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-23 22:44:23 +08:00
A few helpful comments
This commit is contained in:
parent
99c0cbdf29
commit
0cbaed2443
|
@ -20,10 +20,10 @@ import (
|
||||||
// Server represents an instance of a server, which serves
|
// Server represents an instance of a server, which serves
|
||||||
// static content at a particular address (host and port).
|
// static content at a particular address (host and port).
|
||||||
type Server struct {
|
type Server struct {
|
||||||
HTTP2 bool // temporary while http2 is not in std lib (TODO: remove flag when part of std lib)
|
HTTP2 bool // temporary while http2 is not in std lib (TODO: remove flag when part of std lib)
|
||||||
address string
|
address string // the actual address for net.Listen to listen on
|
||||||
tls bool
|
tls bool // whether this server is serving all HTTPS hosts or not
|
||||||
vhosts map[string]virtualHost
|
vhosts map[string]virtualHost // virtual hosts keyed by their address
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new Server which will bind to addr and serve
|
// New creates a new Server which will bind to addr and serve
|
||||||
|
|
Loading…
Reference in New Issue
Block a user