- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for assertHandshake (0.1 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/RecordedResponse.kt
apply { assertThat(response!!.headers).isEqualTo(headers) } fun assertBody(expectedBody: String) = apply { assertThat(body).isEqualTo(expectedBody) } fun assertHandshake() = apply { val handshake = response!!.handshake!! assertThat(handshake.tlsVersion).isNotNull() assertThat(handshake.cipherSuite).isNotNull() assertThat(handshake.peerPrincipal).isNotNull()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
enableTls() server.enqueue( MockResponse( headers = headersOf("Content-Type", "text/plain"), body = "abc", ), ) executeSynchronously("/").assertHandshake() } @Test fun tls_Async() { enableTls() server.enqueue( MockResponse( headers = headersOf("Content-Type", "text/plain"), body = "abc", ),
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (0)