Files
gf/.example/net/ghttp/client/cookie/server.go

16 lines
233 B
Go
Raw Normal View History

package main
2018-04-17 13:54:33 +08:00
import (
2019-07-29 21:01:19 +08:00
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/net/ghttp"
2018-04-17 13:54:33 +08:00
)
2018-04-12 18:06:42 +08:00
func main() {
2019-04-03 00:03:46 +08:00
s := g.Server()
s.BindHandler("/", func(r *ghttp.Request) {
r.Response.Writeln(r.Cookie.Map())
})
s.SetPort(8199)
s.Run()
}