Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for withSettings (0.23 sec)

  1. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        var pushPromises: List<PushPromise> = mockResponse.pushPromises
        pushPromises = mockResponse.pushPromises
        mockResponse = mockResponse.withSettings(Settings())
        var settings: Settings = mockResponse.settings
        settings = mockResponse.settings
        mockResponse =
          mockResponse.withWebSocketUpgrade(
            object : WebSocketListener() {
            },
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

      }
    
      fun getHeadersDelay(unit: TimeUnit): Long = unit.convert(headersDelayAmount, headersDelayUnit)
    
      fun withPush(promise: PushPromise) =
        apply {
          promises.add(promise)
        }
    
      fun withSettings(settings: Settings) =
        apply {
          this.settings = settings
        }
    
      fun withWebSocketUpgrade(listener: WebSocketListener) =
        apply {
          status = "HTTP/1.1 101 Switching Protocols"
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top