Config

class Config

HttpCallValidator configuration.

Constructors

Link copied to clipboard
fun Config()

Functions

Link copied to clipboard
fun handleResponseException(block: CallExceptionHandler)

Add CallExceptionHandler. Last added handler executes first.

Link copied to clipboard

Add CallRequestExceptionHandler. Last added handler executes first.

Link copied to clipboard
fun validateResponse(block: ResponseValidator)

Add ResponseValidator. Last added validator executes first.

Properties

Link copied to clipboard
var expectSuccess: Boolean = true

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