A few helpful comments

This commit is contained in:
Matthew Holt 2015-04-21 16:00:16 -06:00
parent 99c0cbdf29
commit 0cbaed2443

View File

@ -21,9 +21,9 @@ import (
// static content at a particular address (host and port).
type Server struct {
HTTP2 bool // temporary while http2 is not in std lib (TODO: remove flag when part of std lib)
address string
tls bool
vhosts map[string]virtualHost
address string // the actual address for net.Listen to listen on
tls bool // whether this server is serving all HTTPS hosts or not
vhosts map[string]virtualHost // virtual hosts keyed by their address
}
// New creates a new Server which will bind to addr and serve