初步完成第一阶段的性能改进

This commit is contained in:
John
2018-11-17 02:39:23 +08:00
parent 778595dd8f
commit b190ee9fe6
22 changed files with 295 additions and 315 deletions

View File

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