Scoop API

scoop:scoop.http.client:0.1.0

HttpCallEvent

class HttpCallEvent

source · line 204
public
public class HttpCallEvent internal constructor(
    /**
     * The event's phase or progress category.
     */
    public val kind: HttpCallEventKind,
    /**
     * Stable information about the logical call.
     */
    public val call: HttpCallInfo,
    /**
     * The immutable attempt snapshot at this event.
     */
    public val metrics: HttpAttemptMetrics,
        /**
         * The failure associated with the event, if any.
         */
        public val failure: Throwable?)

An observer event combining stable call information, an attempt snapshot, and any failure.

function formatSummary

source · line 224
public
public fun formatSummary(): String

Formats a compact summary using redacted URL information and observed metrics.

property failure

source · line 220
public
public val failure: Throwable?

get: public read-only

The failure associated with the event, if any.