完成ghttp.Server热重启特性的HTTP&HTTPS在Linux下的功能及稳定性测试

This commit is contained in:
John
2018-05-16 21:27:27 +08:00
parent 6ca634e85b
commit 5bbf411741
11 changed files with 53 additions and 30 deletions

View File

@ -11,7 +11,8 @@ func main() {
r.Response.Writeln("您可以同时通过HTTP和HTTPS方式看到该内容")
})
s.EnableHTTPS("/home/john/temp/server.crt", "/home/john/temp/server.key")
s.SetHTTPSPort(8198)
s.SetPort(8199)
s.SetHTTPSPort(8198, 8199)
s.SetPort(8200, 8300)
s.EnableAdmin()
s.Run()
}