Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for disconnectAtStart (0.19 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

            .setHeader("Sec-WebSocket-Accept", "ujmZX4KXZqjwy6vi1aQFH5p4Ygk=")
            .build(),
        )
        webServer.enqueue(
          MockResponse.Builder()
            .socketPolicy(SocketPolicy.DisconnectAtStart)
            .build(),
        )
        val webSocket = newWebSocket()
        clientListener.assertFailure(
          101,
          null,
          ProtocolException::class.java,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  2. mockwebserver/api/mockwebserver3.api

    	public static final field INSTANCE Lmockwebserver3/SocketPolicy$DisconnectAtEnd;
    }
    
    public final class mockwebserver3/SocketPolicy$DisconnectAtStart : mockwebserver3/SocketPolicy {
    	public static final field INSTANCE Lmockwebserver3/SocketPolicy$DisconnectAtStart;
    }
    
    public final class mockwebserver3/SocketPolicy$DisconnectDuringRequestBody : mockwebserver3/SocketPolicy {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 03 21:59:45 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  3. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
      }
    
      @Disabled("Not actually failing where expected")
      @Test
      fun disconnectAtStart() {
        server.enqueue(
          MockResponse.Builder()
            .socketPolicy(DisconnectAtStart)
            .build(),
        )
        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
    - 23.5K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

    import javax.net.ssl.TrustManager
    import javax.net.ssl.X509TrustManager
    import mockwebserver3.SocketPolicy.DisconnectAfterRequest
    import mockwebserver3.SocketPolicy.DisconnectAtEnd
    import mockwebserver3.SocketPolicy.DisconnectAtStart
    import mockwebserver3.SocketPolicy.DisconnectDuringRequestBody
    import mockwebserver3.SocketPolicy.DisconnectDuringResponseBody
    import mockwebserver3.SocketPolicy.DoNotReadRequestBody
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  5. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
      }
    
      @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.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top