- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 23 for localhostHandshakeCertificates (0.2 sec)
-
okhttp/src/test/java/okhttp3/DuplexTest.kt
@RegisterExtension var clientTestRule = OkHttpClientTestRule() private lateinit var server: MockWebServer private var listener = RecordingEventListener() private val handshakeCertificates = platform.localhostHandshakeCertificates() private var client = clientTestRule.newClientBuilder() .eventListenerFactory(clientTestRule.wrap(listener)) .build() private val executorService = Executors.newScheduledThreadPool(1)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 23.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt
@RegisterExtension val clientTestRule: OkHttpClientTestRule = OkHttpClientTestRule() private lateinit var server: MockWebServer private val handshakeCertificates = platform.localhostHandshakeCertificates() private var client: OkHttpClient = clientTestRule.newClient() @BeforeEach fun setUp(server: MockWebServer) { this.server = server } @Test fun connectionsAreReused() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 12.3K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt
} fun androidSdkVersion(): Int? { return if (Platform.isAndroid) { Build.VERSION.SDK_INT } else { null } } fun localhostHandshakeCertificates(): HandshakeCertificates { return when { isBouncyCastle() -> localhostHandshakeCertificatesWithRsa2048 else -> localhost() } } val isAndroid: Boolean
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15.3K bytes - Viewed (1) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
assertThat(server.protocols.size).isEqualTo(1) assertThat(server.protocols[0]).isEqualTo(Protocol.H2_PRIOR_KNOWLEDGE) } @Test fun https() { val handshakeCertificates = platform.localhostHandshakeCertificates() server.useHttps(handshakeCertificates.sslSocketFactory(), false) server.enqueue(MockResponse().setBody("abc")) val url = server.url("/")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.9K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
assertThat(server.protocols.size).isEqualTo(1) assertThat(server.protocols[0]).isEqualTo(Protocol.H2_PRIOR_KNOWLEDGE) } @Test fun https() { val handshakeCertificates = platform.localhostHandshakeCertificates() server.useHttps(handshakeCertificates.sslSocketFactory()) server.enqueue( MockResponse.Builder() .body("abc") .build(), ) val url = server.url("/")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 23.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt
// Since this is public API, okhttp3.internal.tls.OkHostnameVerifier.verify is also assertThat(verifier).isInstanceOf<OkHostnameVerifier>() val handshakeCertificates = platform.localhostHandshakeCertificates() val session = handshakeCertificates.sslContext().createSSLEngine().session assertThat(localVerifier.verify("\uD83D\uDCA9.com", session)).isFalse() } @Test fun verifyAsIpAddress() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 40.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
var platform = PlatformRule() @RegisterExtension var testLogHandler = TestLogHandler(OkHttpClient::class.java) private lateinit var webServer: MockWebServer private val handshakeCertificates = platform.localhostHandshakeCertificates() private val clientListener = WebSocketRecorder("client") private val serverListener = WebSocketRecorder("server") private val random = Random(0) private var client = clientTestRule.newClientBuilder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 35.2K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
class HttpLoggingInterceptorTest { @RegisterExtension val platform = PlatformRule() private lateinit var server: MockWebServer private val handshakeCertificates = platform.localhostHandshakeCertificates() private val hostnameVerifier = RecordingHostnameVerifier() private lateinit var client: OkHttpClient private lateinit var host: String private lateinit var url: HttpUrl
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 09:14:38 UTC 2024 - 37.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/EventListenerTest.kt
val clientTestRule = OkHttpClientTestRule() private lateinit var server: MockWebServer private val listener: RecordingEventListener = RecordingEventListener() private val handshakeCertificates = platform.localhostHandshakeCertificates() private var client = clientTestRule.newClientBuilder() .eventListenerFactory(clientTestRule.wrap(listener)) .build() private var socksProxy: SocksProxy? = null
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 56.9K bytes - Viewed (2) -
okhttp/src/test/java/okhttp3/CacheTest.kt
@RegisterExtension val platform = PlatformRule() private lateinit var server: MockWebServer private lateinit var server2: MockWebServer private val handshakeCertificates = platform.localhostHandshakeCertificates() private lateinit var client: OkHttpClient private lateinit var cache: Cache private val cookieManager = CookieManager() @BeforeEach fun setUp(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 108.6K bytes - Viewed (0)