- Sort Score
- Num 10 results
- Language All
Results 1 - 9 of 9 for failHandshake (0.08 seconds)
-
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
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 this.onResponseStart = builder.onResponseStartCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 17.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt
assertThat(event.route.socketAddress).isEqualTo(expectedAddress) } @Test @Throws(UnknownHostException::class) fun failedConnect() { enableTls() server.enqueue(MockResponse.Builder().failHandshake().build()) val call = client.newCall( Request .Builder() .url(server.url("/")) .build(), ) assertFailsWith<IOException> {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 18:33:48 GMT 2025 - 9.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
assertThat(connectEnd.protocol).isEqualTo(Protocol.HTTP_1_1) } @Test fun failedConnect() { enableTlsWithTunnel() server.enqueue( MockResponse .Builder() .failHandshake() .build(), ) val call = client.newCallWithListener( Request .Builder() .url(server.url("/")) .build(), )
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 70.7K bytes - Click Count (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
server.useHttps(handshakeCertificates.sslSocketFactory()) server.protocols = Arrays.asList(Protocol.HTTP_2, Protocol.HTTP_1_1) server.enqueue( MockResponse .Builder() .failHandshake() .build(), ) url = server.url("/") try { client.newCall(request().build()).execute() fail<Any>() } catch (expected: IOException) { } logRecorder
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 10.2K bytes - Click Count (0) -
mockwebserver/api/mockwebserver3.api
public fun clone ()Lmockwebserver3/MockResponse$Builder; public final fun code (I)Lmockwebserver3/MockResponse$Builder; public final fun doNotReadRequestBody ()Lmockwebserver3/MockResponse$Builder; public final fun failHandshake ()Lmockwebserver3/MockResponse$Builder; public final fun getBody ()Lmockwebserver3/MockResponseBody; public final fun getBodyDelayNanos ()J public final fun getCode ()I public final fun getDoNotReadRequestBody ()Z
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 11.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
server.enqueue(MockResponse.Builder().failHandshake().build()) server.enqueue(MockResponse(body = "response that will never be received")) val response = executeSynchronously("/") response.assertFailure( // JDK 11 response to the FAIL_HANDSHAKE: SSLException::class.java, // RI response to the FAIL_HANDSHAKE: SSLProtocolException::class.java,
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 146.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
when (expected) { is SSLProtocolException -> { // RI response to the FAIL_HANDSHAKE } is SSLHandshakeException -> { // Android's response to the FAIL_HANDSHAKE } is SSLException -> { // JDK 1.9 response to the FAIL_HANDSHAKE // javax.net.ssl.SSLException: Unexpected handshake message: client_hello }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 133.3K bytes - Click Count (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt
result.onResponseBody(CloseSocket()) } SocketPolicy.DO_NOT_READ_REQUEST_BODY -> { result.doNotReadRequestBody() } SocketPolicy.FAIL_HANDSHAKE -> { result.failHandshake() } SocketPolicy.SHUTDOWN_INPUT_AT_END -> { result.onResponseEnd( CloseSocket( closeSocket = false, shutdownInput = true, ),
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 4.3K bytes - Click Count (1) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
if (!processTunnelRequests()) return val protocol: Protocol val socket: MockWebServerSocket when { sslSocketFactory != null -> { if (firstExchangePeek.failHandshake) { dispatchBookkeepingRequest( connectionIndex = connectionIndex, exchangeIndex = nextExchangeIndex++, socket = MockWebServerSocket(raw), )
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 40.3K bytes - Click Count (0)