Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for throttlePeriodNanos (0.16 sec)

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

        this.inTunnel = builder.inTunnel
        this.informationalResponses = builder.informationalResponses
        this.throttleBytesPerPeriod = builder.throttleBytesPerPeriod
        this.throttlePeriodNanos = builder.throttlePeriodNanos
        this.failHandshake = builder.failHandshake
        this.onRequestStart = builder.onRequestStart
        this.doNotReadRequestBody = builder.doNotReadRequestBody
        this.onRequestBody = builder.onRequestBody
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        stream: Http2Stream? = null,
      ): Sink {
        var result: Sink = this
    
        if (policy.throttlePeriodNanos > 0L) {
          result =
            ThrottledSink(
              socket = socket,
              delegate = result,
              bytesPerPeriod = policy.throttleBytesPerPeriod,
              periodDelayNanos = policy.throttlePeriodNanos,
            )
        }
    
        if (socketEffect != null) {
          val halfwayByteCount =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
Back to top