mirror of
https://gitee.com/johng/gf
synced 2026-07-05 05:13:14 +08:00
ghttp.Request.Exit示例代码更新
This commit is contained in:
@ -15,10 +15,10 @@ func main() {
|
||||
r.Response.Writeln("end")
|
||||
})
|
||||
s.BindHookHandlerByMap(p, map[string]ghttp.HandlerFunc{
|
||||
"BeforeServe" : func(r *ghttp.Request){
|
||||
ghttp.HOOK_BEFORE_SERVE : func(r *ghttp.Request){
|
||||
glog.To(r.Response.Writer).Println("BeforeServe")
|
||||
},
|
||||
"AfterServe" : func(r *ghttp.Request){
|
||||
ghttp.HOOK_AFTER_SERVE : func(r *ghttp.Request){
|
||||
glog.To(r.Response.Writer).Println("AfterServe")
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user