github.com/HXSecurity/DongTai-agent-go@v0.4.2/hook/httpRouter.go (about) 1 package hook 2 3 type HttpRouter struct { 4 } 5 6 func (h *HttpRouter) GetHook() []string { 7 return []string{ 8 "httpRouter", 9 "httpRequestFormValue", 10 "httpRequestCookie", 11 "urlURLQuery", 12 } 13 } 14 15 func (h *HttpRouter) HookAll() { 16 Hook(h.GetHook()) 17 } 18 19 func (h *HttpRouter) UnHookAll() { 20 UnHook(h.GetHook()) 21 }