Info: |
Cache | {{if .Item.CacheHit}}HIT{{else}}MISS{{end}} |
RID | {{.Item.Rid}} |
GID | {{.Item.Gid}} |
SID | {{.Item.SessionID.String}} |
Timestamp | {{(intToTime .Item.Timestamp).Format "2006-01-02 15:04:05"}} |
|
Config: |
{{$pconf := (jsonToPageConfig .Item.PageConfig )}}
ForceUA | {{$pconf.ForceUA}} |
UaType | {{$pconf.UaType}} |
UseProxy | {{$pconf.UseProxy}} |
StickyCookies | {{$pconf.StickyCookies}} |
StickyUA | {{$pconf.StickyUA}} |
IgnoreInterceptions | {{$pconf.IgnoreInterceptions}} |
IgnoreAllInterceptions | {{$pconf.IgnoreAllInterceptions}} |
CacheFreshness | {{$pconf.CacheFreshness}} |
CacheServeFailures | {{$pconf.CacheServeFailures}} |
{{if .Item.Session.Valid}}
|
Session: |
{{$sess := (jsonToSession .Item.Session )}}
Session ID | {{$sess.ID}} |
User Agent | {{$sess.UserAgent}} |
Proxy IP | {{hostname $sess.ProxyURL}} |
Cookie Jar |
{{ range $key, $values := $sess.Cookies}}
{{ $key }} |
{{ range $value := $values }} {{$value}} {{end}} |
{{ end }}
|
CreatedAt | {{$sess.CreatedAt.Format "2006-01-02 15:04:05"}} |
{{end}}
|
Request: |
Method | {{.Item.RequestMethod}} |
URL | {{.Item.RequestURL}} |
Header |
{{ range $key, $values := (jsonToHeader .Item.RequestHeader )}}
{{ $key }} |
{{ range $value := $values }} {{$value}} {{end}} |
{{ end }}
|
ContentLength | {{.Item.RequestContentLength}} |
Body | {{if .Item.RequestBody.Valid}}{{printf "%s" .Item.RequestBody.Bytes}}{{end}} |
{{if .Item.ResponseStatus.Valid }}
|
Response: |
Status | {{.Item.ResponseStatus.String}} |
Proto | {{.Item.ResponseProto.String}} |
Header |
{{ range $key, $values := (jsonToHeader .Item.ResponseHeader )}}
{{ $key }} |
{{ range $value := $values }} {{$value}} {{end}} |
{{ end }}
|
ContentLength | {{if .Item.ResponseContentLength.Valid}}{{.Item.ResponseContentLength.Int64}}{{end}} |
TransferEncoding |
{{ range $value := (jsonToSlice .Item.ResponseTransferEncoding) }} {{$value}} {{end}}
|
Body |
View Content
|
{{end}}
{{end}}
{{define "info"}}