Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for toNanos (0.14 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

          throttlePeriodNanos = unit.toNanos(period)
        }
    
        /**
         * Set the delayed time of the response body to [delay]. This applies to the response body
         * only; response headers are not affected.
         */
        fun bodyDelay(
          delay: Long,
          unit: TimeUnit,
        ) = apply {
          bodyDelayNanos = unit.toNanos(delay)
        }
    
        fun headersDelay(
          delay: Long,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 13.3K bytes
    - Viewed (1)
Back to top