Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setSocketPolicy (0.09 sec)

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

      }
    
      @Disabled("Not actually failing where expected")
      @Test
      fun disconnectAtStart() {
        server.enqueue(
          MockResponse()
            .setSocketPolicy(SocketPolicy.DISCONNECT_AT_START),
        )
        server.enqueue(MockResponse()) // The jdk's HttpUrlConnection is a bastard.
        server.enqueue(MockResponse())
        try {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

      @Deprecated(
        message = "moved to var",
        replaceWith = ReplaceWith(expression = "socketPolicy"),
        level = DeprecationLevel.ERROR,
      )
      fun getSocketPolicy(): SocketPolicy = socketPolicy
    
      fun setSocketPolicy(socketPolicy: SocketPolicy) =
        apply {
          this.socketPolicy = socketPolicy
        }
    
      @JvmName("-deprecated_getHttp2ErrorCode")
      @Deprecated(
        message = "moved to var",
    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