RequestEvent

One finished API call.

Properties

Link copied to clipboard

HTTP requests made for this call, counting retries. 0 when served from the cache or by another caller's request.

Link copied to clipboard

durationMillis as a Duration.

Link copied to clipboard

Wall-clock time for the whole call, including waits for the rate limiter and retries.

Link copied to clipboard

The exception the call failed with, or null on success.

Link copied to clipboard

True when the result came from SportsDbConfig.cache.

Link copied to clipboard

True when an identical call already in flight supplied the result (SportsDbConfig.deduplicateRequests).

Link copied to clipboard
val status: Int?

The last HTTP status, or null if no response arrived or the result came from the cache.

Link copied to clipboard
val url: String

The URL, with any v1 key replaced by ***. Safe to log.

Functions

Link copied to clipboard
open override fun toString(): String