Scoop API

scoop:scoop.http.client:0.1.0

HttpSseReconnect

class HttpSseReconnect

source · line 67
public
public class HttpSseReconnect internal constructor(
    /**
     * The reconnect attempt number.
     */
    public val number: Long,
    /**
         * The selected wait before reconnecting.
         */
    public val delay: Duration,
    /**
         * The URL selected for reconnect.
         */
    public val url: Url,
    /**
     * The last accepted event ID forwarded to the next request.
     */
    public val lastEventId: String,
    /**
         * The preceding failure, or None after ordinary EOF.
         */
    public val cause: Throwable?
)

A reconnect snapshot containing attempt number, selected delay, URL, current event ID, and preceding failure.

property number

source · line 71
public
public val number: Long

get: public read-only

The reconnect attempt number.

property delay

source · line 75
public
public val delay: Duration

get: public read-only

The selected wait before reconnecting.

property lastEventId

source · line 83
public
public val lastEventId: String

get: public read-only

The last accepted event ID forwarded to the next request.

property url

source · line 79
public
public val url: Url

get: public read-only

The URL selected for reconnect.

property cause

source · line 87
public
public val cause: Throwable?

get: public read-only

The preceding failure, or None after ordinary EOF.