Config

class Config

HttpCallValidator configuration.

Constructors

<init>

Config()

HttpCallValidator configuration.

Properties

expectSuccess

var expectSuccess: Boolean

Terminate HttpClient.receivePipeline if status code is not success(>=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.