- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 45 for arrayFor (0.12 sec)
-
okhttp/src/test/java/okhttp3/CommonRequestBodyTest.kt
import okhttp3.RequestBody.Companion.toRequestBody class CommonRequestBodyTest { @Test fun correctContentType() { val body = "Body" val requestBody = body.toRequestBody(MediaType("text/plain", "text", "plain", arrayOf())) val contentType = requestBody.contentType()!! assertThat(contentType.mediaType).isEqualTo("text/plain; charset=utf-8") assertThat(contentType.parameter("charset")).isEqualTo("utf-8") }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Dec 20 23:27:07 UTC 2023 - 1.1K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateInitPluginTemplateVersionFile.kt
import java.util.Properties @DisableCachingByDefault(because = "Not worth caching") abstract class UpdateInitPluginTemplateVersionFile : DefaultTask() { private val devSuffixes = arrayOf( "-SNAP\\d+", "-SNAPSHOT", "-alpha.*\\d+", "-beta.*\\d+", "-dev-?\\d+", "-dev-\\d+-\\d+", "-rc-?\\d+", "-M.+", "-eap-?\\d+"
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Jun 28 08:29:29 UTC 2024 - 5.1K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt
fun sslSocketFactory(): SSLSocketFactory = sslContext().socketFactory fun sslContext(): SSLContext { return Platform.get().newSSLContext().apply { init(arrayOf<KeyManager>(keyManager), arrayOf<TrustManager>(trustManager), SecureRandom()) } } class Builder { private var heldCertificate: HeldCertificate? = null private var intermediates: Array<X509Certificate>? = null
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.5K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/alpn/AlpnOverrideTest.kt
val parameters = sslSocket.sslParameters Log.d("CustomSSLSocketFactory", "old applicationProtocols: $parameters.applicationProtocols") parameters.applicationProtocols = arrayOf("x-amzn-http-ca") sslSocket.sslParameters = parameters } return sslSocket } } var client = OkHttpClient() @Test fun getWithCustomSocketFactory() { client =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
chain: Array<out X509Certificate>?, authType: String?, ) {} override fun getAcceptedIssuers(): Array<X509Certificate> = arrayOf() } val sslContext = Platform.get().newSSLContext().apply { init(null, arrayOf(trustManager), null) } val sslSocketFactory = sslContext.socketFactory val hostnameVerifier = HostnameVerifier { _, _ -> true }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 27K bytes - Viewed (0) -
okcurl/src/main/kotlin/okhttp3/curl/Main.kt
authType: String, ) {} override fun getAcceptedIssuers(): Array<X509Certificate> = arrayOf() } private fun createInsecureSslSocketFactory(trustManager: TrustManager): SSLSocketFactory = Platform.get().newSSLContext().apply { init(null, arrayOf(trustManager), null) }.socketFactory
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0) -
samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt
.methods.find { it.name == "main" } try { if (mainMethod != null) { if (mainMethod.parameters.isEmpty()) { mainMethod.invoke(null) } else { mainMethod.invoke(null, arrayOf<String>()) } } else { System.err.println("No main for $className") } } catch (ite: InvocationTargetException) { if (!expectedFailure(className, ite.cause!!)) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt
fun storiesForCurrentDraft(): Array<String> { val resource = HpackJsonUtil::class.java.getResource("/hpack-test-case") ?: return arrayOf() val testCaseDirectory = File(resource.toURI()).toOkioPath() val result = mutableListOf<String>() for (path in fileSystem.list(testCaseDirectory)) { val story00 = path / "story_00.json"
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.3K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackRoundTripTest.kt
newCases += case.copy(wire = bytesOut.readByteString()) } testDecoder(story.copy(cases = newCases)) } companion object { private val RAW_DATA = arrayOf("raw-data") }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/connection/RetryConnectionTest.kt
val routePlanner = factory.newRoutePlanner(client) val route = factory.newRoute() val connectionSpecs = listOf(ConnectionSpec.MODERN_TLS, ConnectionSpec.COMPATIBLE_TLS, sslV3) val enabledSocketTlsVersions = arrayOf( TlsVersion.TLS_1_2, TlsVersion.TLS_1_1, TlsVersion.TLS_1_0, ) var socket = createSocketWithEnabledProtocols(*enabledSocketTlsVersions) // MODERN_TLS is used here.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.3K bytes - Viewed (0)