RecordedRequest

data class RecordedRequest(val endpoint: NetworkEndpoint, val body: Any?, val responseType: TypeInfo, val index: Int)

One call made through this client.

Constructors

Link copied to clipboard
constructor(endpoint: NetworkEndpoint, body: Any?, responseType: TypeInfo, index: Int)

Properties

Link copied to clipboard
val body: Any?

the typed request body, or null when none was sent.

Link copied to clipboard

the endpoint requested.

Link copied to clipboard
val index: Int

the 0-based order of this call across the client's lifetime.

Link copied to clipboard
val responseType: TypeInfo

the type the caller asked the response to decode into.