- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for assertHandshake (0.07 sec)
-
okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.3K bytes - Viewed (0) -
okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 142.5K bytes - Viewed (0)