Scoop API

scoop:scoop.http.client:0.1.0

HttpAttemptMetrics

class HttpAttemptMetrics

source · line 84
public
public 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 153
public
public val responseHeadersAt: TimeMark?

get: public read-only

The most recent informational, final, or cached response-header milestone.

property requestHeadersAt

source · line 145
public
public val requestHeadersAt: TimeMark?

get: public read-only

The recorded outgoing-header milestone.

property encodedResponseBodyBytes

source · line 194
public
public val encodedResponseBodyBytes: Long

get: public read-only

Incoming body bytes before content decoding.

property firstResponseByteAt

source · line 170
public
public 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 182
public
public val status: UInt?

get: public read-only

The most recent informational, final, or cached response status, once available.

property version

source · line 174
public
public val version: HttpVersion?

get: public read-only

The selected HTTP protocol version, once known.

property responseHeadersAtUtc

source · line 157
public
public val responseHeadersAtUtc: Instant?

get: public read-only

The wall-clock timestamp of the most recent response-header milestone.

property requestBodyBytes

source · line 190
public
public val requestBodyBytes: Long

get: public read-only

Outgoing request body bytes transferred so far.

property finishedAt

source · line 113
public
public val finishedAt: TimeMark?

get: public read-only

The monotonic completion mark, or None while still active.

property urlDisplay

source · line 101
public
public 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 198
public
public val responseBodyBytes: Long

get: public read-only

Body bytes delivered after content decoding.

property finalResponseHeadersAt

source · line 161
public
public val finalResponseHeadersAt: TimeMark?

get: public read-only

The network final-response-header milestone, excluding informational and cached heads.

property finalResponseHeadersAtUtc

source · line 165
public
public val finalResponseHeadersAtUtc: Instant?

get: public read-only

The wall-clock timestamp of the network final-response-header milestone.

property method

source · line 96
public
public val method: String

get: public read-only

The case-sensitive request method.

property startedAtUtc

source · line 109
public
public val startedAtUtc: Instant

get: public read-only

The wall-clock timestamp sampled at the start of this attempt.

property requestHeadersAtUtc

source · line 149
public
public val requestHeadersAtUtc: Instant?

get: public read-only

The wall-clock timestamp sampled when request headers reached the protocol layer.

property finishedAtUtc

source · line 117
public
public val finishedAtUtc: Instant?

get: public read-only

The wall-clock timestamp sampled at completion, or None while active.

property number

source · line 88
public
public val number: Long

get: public read-only

The observed attempt number.

property connectionReused

source · line 178
public
public val connectionReused: Boolean?

get: public read-only

Whether an existing connection was reused, once known.

property proxyHandshake

source · line 137
public
public val proxyHandshake: HttpPhaseTiming?

get: public read-only

CONNECT or SOCKS5 handshake timing, when performed.