mirror of
https://github.com/eolinker/apinto
synced 2025-11-01 04:22:40 +08:00
access log新增系统变量
This commit is contained in:
@@ -19,6 +19,8 @@ type Response struct {
|
||||
responseTime time.Duration
|
||||
proxyStatusCode int
|
||||
responseError error
|
||||
remoteIP string
|
||||
remotePort int
|
||||
}
|
||||
|
||||
func (r *Response) ContentLength() int {
|
||||
@@ -119,3 +121,11 @@ func (r *Response) SetResponseTime(t time.Duration) {
|
||||
func (r *Response) ResponseTime() time.Duration {
|
||||
return r.responseTime
|
||||
}
|
||||
|
||||
func (r *Response) RemoteIP() string {
|
||||
return r.remoteIP
|
||||
}
|
||||
|
||||
func (r *Response) RemotePort() int {
|
||||
return r.remotePort
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user