mockwebserver / okhttp3.mockwebserver / MockResponse / setBodyDelay

setBodyDelay

fun setBodyDelay(delay: Long, unit: TimeUnit): MockResponse

Set the delayed time of the response body to delay. This applies to the response body only; response headers are not affected.