diff options
Diffstat (limited to 'internal/ipc')
| -rw-r--r-- | internal/ipc/ipc.go | 7 | ||||
| -rw-r--r-- | internal/ipc/server.go | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/internal/ipc/ipc.go b/internal/ipc/ipc.go index 270b8e4..5dac21f 100644 --- a/internal/ipc/ipc.go +++ b/internal/ipc/ipc.go @@ -100,6 +100,13 @@ type EntryDetail struct { ResponseRaw []byte `json:"response_raw"` RequestExact bool `json:"request_exact"` ResponseExact bool `json:"response_exact"` + // *Truncated is true when the matching *Exact is false specifically + // because capture hit its size cap and dropped bytes off the end - + // as opposed to false because there was never a wire-exact + // representation to begin with (HTTP/2). Only meaningful alongside + // a false *Exact. + RequestTruncated bool `json:"request_truncated,omitempty"` + ResponseTruncated bool `json:"response_truncated,omitempty"` } // Client talks to a mitmuxd instance for request/response queries diff --git a/internal/ipc/server.go b/internal/ipc/server.go index 94073da..2879b24 100644 --- a/internal/ipc/server.go +++ b/internal/ipc/server.go @@ -312,6 +312,7 @@ func detailFromEntry(e *store.Entry) *EntryDetail { }, RequestRaw: e.RequestRaw, ResponseRaw: e.ResponseRaw, RequestExact: e.RequestExact, ResponseExact: e.ResponseExact, + RequestTruncated: e.RequestTruncated, ResponseTruncated: e.ResponseTruncated, } } |