mirror of
https://github.com/eolinker/apinto
synced 2025-10-10 11:10:24 +08:00
新增格式转换插件,新增http日志变量,调整json输出请求日志格式
This commit is contained in:
@@ -16,11 +16,16 @@ type requestAgent struct {
|
||||
statusCode int
|
||||
status string
|
||||
responseLength int
|
||||
responseBody string
|
||||
beginTime time.Time
|
||||
endTime time.Time
|
||||
hostAgent *UrlAgent
|
||||
}
|
||||
|
||||
func (a *requestAgent) ResponseBody() string {
|
||||
return a.responseBody
|
||||
}
|
||||
|
||||
func (a *requestAgent) ProxyTime() time.Time {
|
||||
return a.beginTime
|
||||
}
|
||||
|
Reference in New Issue
Block a user