Success

class Success<R>(val httpResponse: HttpResponse) : IntermediateResult<R> (source)

Constructors

Link copied to clipboard
constructor(httpResponse: HttpResponse)

Properties

Link copied to clipboard
val httpResponse: HttpResponse

Functions

Link copied to clipboard
inline suspend fun <T, R> IntermediateResult<R>.onSuccess(block: T.(response: HttpResponse) -> R): R

Helper method to perform error handling on ktor responses, see onFailure.