We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e5e397 commit 0c95132Copy full SHA for 0c95132
internal/commands/server.go
@@ -20,7 +20,8 @@ type HTTPServer interface {
20
ListenAndServeTLS(certFile, keyFile string) error
21
}
22
23
-// GetStdHTTPServer
+// GetStdHTTPServer returns a standard net/http.Server configured for a given
24
+// address and handler, and other sane defaults.
25
func GetStdHTTPServer(addr string, h http.Handler) HTTPServer {
26
return &http.Server{
27
Addr: addr,
0 commit comments