统计
()
| 6 | |
| 7 | // 统计 |
| 8 | func (this *HTTPRequest) doStat() { |
| 9 | if this.ReqServer == nil || this.web == nil || this.web.StatRef == nil { |
| 10 | return |
| 11 | } |
| 12 | |
| 13 | // 内置的统计 |
| 14 | stats.SharedHTTPRequestStatManager.AddRemoteAddr(this.ReqServer.Id, this.requestRemoteAddr(true), this.writer.SentBodyBytes(), this.isAttack) |
| 15 | stats.SharedHTTPRequestStatManager.AddUserAgent(this.ReqServer.Id, this.requestHeader("User-Agent"), this.remoteAddr) |
| 16 | } |
no test coverage detected