mirror of
https://gitee.com/johng/gf
synced 2026-06-30 11:05:11 +08:00
add http/https scheme for log of ghttp.Server; add transport setting to ignore tls cert for ghttp.Client; version updates
This commit is contained in:
@ -10,6 +10,7 @@ func main() {
|
||||
r.Response.Writeln("来自于HTTPS的:哈喽世界!")
|
||||
})
|
||||
s.EnableHTTPS("./server.crt", "./server.key")
|
||||
s.SetAccessLogEnabled(true)
|
||||
s.SetPort(8199)
|
||||
s.Run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user