Commit 0cbaed24 authored by Matthew Holt's avatar Matthew Holt

A few helpful comments

parent 99c0cbdf
...@@ -21,9 +21,9 @@ import ( ...@@ -21,9 +21,9 @@ import (
// 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment