新增格式转换插件,新增http日志变量,调整json输出请求日志格式

This commit is contained in:
Liujian
2023-08-24 15:44:00 +08:00
parent 9a7136c677
commit 62618fde7c
39 changed files with 599 additions and 361 deletions

View File

@@ -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
}