This commit is contained in:
cdle
2023-06-27 13:27:04 +08:00
parent 564ced7f4f
commit 3bdbb07ba3
11 changed files with 194 additions and 12 deletions
+5
View File
@@ -35,6 +35,7 @@ type Request struct {
handled bool
uuid string
bodyData []byte
_event string
}
func (r *Request) Body() string {
@@ -59,6 +60,10 @@ func (r *Request) Ip() string {
return r.c.ClientIP()
}
func (r *Request) Event() string {
return r._event
}
func (r *Request) OriginalUrl() string {
return r.c.Request.URL.String()
}