MockResponse

constructor(statusCode: Int = 200, body: Flow<ByteString> = emptyFlow(), headers: Map<String, String> = mapOf("Content-Length" to "0"), delayMillis: Long = 0)

Deprecated (with error)

Use MockResponse.Builder instead

Replace with

MockResponse.Builder().statusCode(statusCode).headers(headers).body(body).delayMillis(delayMillis).build()