ktor-client-core / io.ktor.client.features / ResponseValidator

ResponseValidator

typealias ResponseValidator = suspend (response: HttpResponse) -> Unit

Response validator method.

You could throw an exception to fail the response.