retryAfterDuration

fun Response.retryAfterDuration(): Duration?

Returns the relative waiting time extracted from the Retry-After header if any.