feat(web): rewrite tunnel monitor preview

This commit is contained in:
2026-05-03 23:53:32 -04:00
parent 9efc2b0494
commit c9304ea1cf
9 changed files with 593 additions and 313 deletions

View File

@@ -17,13 +17,21 @@ type TunnelRecord struct {
Status int
SourceAddr string
RequestHeaders http.Header
RequestBodyType string
RequestBody []byte
RequestHeaders http.Header
RequestBodyType string
RequestBody []byte
RequestBodySize int64
RequestBodyCaptured bool
RequestBodyTruncated bool
RequestBodySkipped string
ResponseHeaders http.Header
ResponseBodyType string
ResponseBody []byte
ResponseHeaders http.Header
ResponseBodyType string
ResponseBody []byte
ResponseBodySize int64
ResponseBodyCaptured bool
ResponseBodyTruncated bool
ResponseBodySkipped string
}
func (tr *TunnelRecord) MarshalJSON() ([]byte, error) {