Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setFailFast (0.04 sec)

  1. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/QueueDispatcher.kt

        delegate.enqueue(response.wrap())
      }
    
      override fun shutdown() {
        delegate.close()
      }
    
      fun setFailFast(failFast: Boolean) {
        delegate.setFailFast(failFast)
      }
    
      fun setFailFast(failFastResponse: MockResponse?) {
        delegate.setFailFast(failFastResponse?.wrap())
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 14 16:09:26 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/QueueDispatcher.kt

      public override fun close() {
        responseQueue.add(DEAD_LETTER)
      }
    
      public open fun setFailFast(failFast: Boolean) {
        setFailFast(
          failFastResponse =
            when {
              failFast -> MockResponse(code = HttpURLConnection.HTTP_NOT_FOUND)
              else -> null
            },
        )
      }
    
      public open fun setFailFast(failFastResponse: MockResponse?) {
        this.failFastResponse = failFastResponse
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 14 16:09:26 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  3. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

          )
        mockResponse = queueDispatcher.peek()
        queueDispatcher.enqueueResponse(MockResponse())
        queueDispatcher.shutdown()
        queueDispatcher.setFailFast(false)
        queueDispatcher.setFailFast(MockResponse())
      }
    
      @Test @Ignore
      fun recordedRequest() {
        var recordedRequest: RecordedRequest =
          RecordedRequest(
            "",
            headersOf(),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top