ktor-client-core / io.ktor.client.features / HttpCallValidator / Config

Config

class Config

HttpCallValidator configuration.

Constructors

<init>

Config()

HttpCallValidator configuration.

Properties

expectSuccess

var expectSuccess: Boolean

Terminate HttpClient.receivePipeline if status code is not successful (>=300).

Functions

handleResponseException

fun handleResponseException(block: CallExceptionHandler): Unit

Add CallExceptionHandler. Last added handler executes first.

validateResponse

fun validateResponse(block: ResponseValidator): Unit

Add ResponseValidator. Last added validator executes first.