Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
0cbaed24
Commit
0cbaed24
authored
Apr 21, 2015
by
Matthew Holt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few helpful comments
parent
99c0cbdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
server/server.go
server/server.go
+4
-4
No files found.
server/server.go
View file @
0cbaed24
...
...
@@ -20,10 +20,10 @@ import (
// Server represents an instance of a server, which serves
// 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
HTTP2
bool
// temporary while http2 is not in std lib (TODO: remove flag when part of std lib)
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment