InspectorTransactionUi

data class InspectorTransactionUi(val id: String, val method: String, val host: String, val path: String, val statusCode: Int?, val durationMs: Long?, val startedAtEpochMs: Long = 0, val requestHeaders: Map<String, String> = emptyMap(), val responseHeaders: Map<String, String> = emptyMap(), val requestPreview: String? = null, val responsePreview: String? = null, val error: String? = null, val url: String = "", val requestBodyKind: InspectorBodyKind = InspectorBodyKind.ABSENT, val requestBodyTruncated: Boolean = false, val timingPhases: InspectorTimingPhasesUi = InspectorTimingPhasesUi(), val isMocked: Boolean = false, val mockRuleId: String? = null)

Constructors

Link copied to clipboard
constructor(id: String, method: String, host: String, path: String, statusCode: Int?, durationMs: Long?, startedAtEpochMs: Long = 0, requestHeaders: Map<String, String> = emptyMap(), responseHeaders: Map<String, String> = emptyMap(), requestPreview: String? = null, responsePreview: String? = null, error: String? = null, url: String = "", requestBodyKind: InspectorBodyKind = InspectorBodyKind.ABSENT, requestBodyTruncated: Boolean = false, timingPhases: InspectorTimingPhasesUi = InspectorTimingPhasesUi(), isMocked: Boolean = false, mockRuleId: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard

True when a mock rule answered this request instead of the real network -- from the mocked capture tag.

Link copied to clipboard
Link copied to clipboard

The mock rule that answered this request, when isMocked is true; from the mockRuleId capture tag.

Link copied to clipboard
Link copied to clipboard

What requestPreview actually contains -- distinguishes a real (possibly truncated) text body from the human-readable "binary, N bytes" placeholder, so replay/cURL/fetch never mistake the placeholder for a sendable body.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Wall-clock start of the capture, epoch ms; 0 when the adapter predates this field.

Link copied to clipboard
Link copied to clipboard

Per-phase network timing, when the underlying transport captured it; see InspectorTimingPhasesUi.

Link copied to clipboard
val url: String

Full redacted URL (scheme, host, path, query); empty when the adapter predates this field.