class HttpAttemptMetrics
source · line 84public class HttpAttemptMetrics internal constructor(call: ClientCall, observation: ClientObservation)
An immutable snapshot of actual attempt phases, connection facts, response status, and body-byte counters. Unperformed phases remain None.
property responseHeadersAt
source · line 153public val responseHeadersAt: TimeMark?
get: public read-only
The most recent informational, final, or cached response-header milestone.
property requestHeadersAt
source · line 145public val requestHeadersAt: TimeMark?
get: public read-only
The recorded outgoing-header milestone.
property cacheStatus
source · line 186public val cacheStatus: HttpCacheStatus
get: public read-only
The response's cache/network origin.
property queue
source · line 121public val queue: HttpPhaseTiming?
get: public read-only
Actual pool-capacity wait timing, when performed.
property proxyTls
source · line 133public val proxyTls: HttpPhaseTiming?
get: public read-only
TLS timing for an HTTPS proxy, when performed.
property encodedResponseBodyBytes
source · line 194public val encodedResponseBodyBytes: Long
get: public read-only
Incoming body bytes before content decoding.
property firstResponseByteAt
source · line 170public val firstResponseByteAt: TimeMark?
get: public read-only
The first recorded incoming-response-byte milestone. Protocol sampling requires a client observer; request-only observation can leave this None on a shared connection.
property status
source · line 182public val status: UInt?
get: public read-only
The most recent informational, final, or cached response status, once available.
property startedAt
source · line 105public val startedAt: TimeMark
get: public read-only
The monotonic start mark.
property version
source · line 174public val version: HttpVersion?
get: public read-only
The selected HTTP protocol version, once known.
property responseHeadersAtUtc
source · line 157public val responseHeadersAtUtc: Instant?
get: public read-only
The wall-clock timestamp of the most recent response-header milestone.
property requestBodyBytes
source · line 190public val requestBodyBytes: Long
get: public read-only
Outgoing request body bytes transferred so far.
property resolve
source · line 125public val resolve: HttpPhaseTiming?
get: public read-only
Actual name-resolution timing, when performed.
property finishedAt
source · line 113public val finishedAt: TimeMark?
get: public read-only
The monotonic completion mark, or None while still active.
property urlDisplay
source · line 101public val urlDisplay: String
get: public read-only
The origin followed by a redacted path marker; query, fragment, and user information are omitted.
property responseBodyBytes
source · line 198public val responseBodyBytes: Long
get: public read-only
Body bytes delivered after content decoding.
property finalResponseHeadersAt
source · line 161public val finalResponseHeadersAt: TimeMark?
get: public read-only
The network final-response-header milestone, excluding informational and cached heads.
property finalResponseHeadersAtUtc
source · line 165public val finalResponseHeadersAtUtc: Instant?
get: public read-only
The wall-clock timestamp of the network final-response-header milestone.
property method
source · line 96public val method: String
get: public read-only
The case-sensitive request method.
property reason
source · line 92public val reason: HttpAttemptReason
get: public read-only
Why this attempt was made.
property connect
source · line 129public val connect: HttpPhaseTiming?
get: public read-only
Actual TCP establishment timing, when performed.
property startedAtUtc
source · line 109public val startedAtUtc: Instant
get: public read-only
The wall-clock timestamp sampled at the start of this attempt.
property requestHeadersAtUtc
source · line 149public val requestHeadersAtUtc: Instant?
get: public read-only
The wall-clock timestamp sampled when request headers reached the protocol layer.
property finishedAtUtc
source · line 117public val finishedAtUtc: Instant?
get: public read-only
The wall-clock timestamp sampled at completion, or None while active.
property number
source · line 88public val number: Long
get: public read-only
The observed attempt number.
property connectionReused
source · line 178public val connectionReused: Boolean?
get: public read-only
Whether an existing connection was reused, once known.
property originTls
source · line 141public val originTls: HttpPhaseTiming?
get: public read-only
TLS timing for the origin connection, when performed.
property proxyHandshake
source · line 137public val proxyHandshake: HttpPhaseTiming?
get: public read-only
CONNECT or SOCKS5 handshake timing, when performed.