- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for mapOf (0.15 sec)
-
okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt
Challenge("Basic", mapOf("realm" to "myrealm")), ) } @Test fun multipleSeparatorsBetweenChallenges() { val headers = Headers.Builder() .add("WWW-Authenticate", "Digest,,,, Basic ,,realm=\"myrealm\"") .build() assertThat(headers.parseChallenges("WWW-Authenticate")).containsExactly( Challenge("Digest", mapOf()), Challenge("Basic", mapOf("realm" to "myrealm")),
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 16.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersTest.kt
@Test fun ofMapThrowsOnEmptyName() { assertFailsWith<IllegalArgumentException> { mapOf("" to "OkHttp").toHeaders() } } @Test fun ofMapThrowsOnBlankName() { assertFailsWith<IllegalArgumentException> { mapOf(" " to "OkHttp").toHeaders() } } @Test fun ofMapAcceptsEmptyValue() { val headers = mapOf("User-Agent" to "").toHeaders() assertThat(headers.value(0)).isEqualTo("") }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 8.6K bytes - Viewed (0) -
okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt
url: HttpUrl, cookies: List<Cookie>, ) { val cookieStrings = mutableListOf<String>() for (cookie in cookies) { cookieStrings.add(cookieToString(cookie, true)) } val multimap = mapOf("Set-Cookie" to cookieStrings) try { cookieHandler.put(url.toUri(), multimap) } catch (e: IOException) { Platform.get().log("Saving cookies failed for " + url.resolve("/...")!!, WARN, e) } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:10:43 GMT 2024 - 3.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CookiesTest.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13K bytes - Viewed (0) -
regression-test/build.gradle.kts
// Make sure to use the AndroidJUnitRunner (or a sub-class) in order to hook in the JUnit 5 Test Builder testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunnerArguments += mapOf( "notClass" to "org.conscrypt.KitKatPlatformOpenSSLSocketImplAdapter,org.bouncycastle.pqc.crypto.qtesla.QTeslaKeyEncodingTests" ) } compileOptions { targetCompatibility(JavaVersion.VERSION_11)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Dec 23 14:46:51 GMT 2023 - 1.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Request.kt
internal var tags = mapOf<KClass<*>, Any>() constructor() { this.method = "GET" this.headers = Headers.Builder() } internal constructor(request: Request) { this.url = request.url this.method = request.method this.body = request.body this.tags = when { request.tags.isEmpty() -> mapOf()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:17:44 GMT 2024 - 10.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt
val immutable: Boolean = cacheControl.immutable() val parse: CacheControl = CacheControl.parse(Headers.of()) } @Test @Disabled fun challenge() { val challenge = Challenge("", mapOf("" to "")) val scheme: String = challenge.scheme() val authParams: Map<String?, String> = challenge.authParams() val realm: String? = challenge.realm() val charset: Charset = challenge.charset() }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/idn/StringprepTablesReaderTest.kt
| 0041; 0061; Case map | 0390; 03B9 0308 0301; Case map | """.trimMargin(), ) val mappings = buffer.readCodePointMappings() assertEquals( mapOf( // Map to nothing. 0x180c to "", // Case map. 'A'.code to "a", // Case map. 'ΐ'.code to "\u03B9\u0308\u0301", ), mappings.mappings, ) }
Plain Text - Registered: Fri Mar 29 11:42:11 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersJvmTest.kt
assertThat(headers.toString()).isEqualTo("header1: valué1\n") } // Fails on JS, ClassCastException: Illegal cast @Test fun ofMapThrowsOnNull() { assertFailsWith<NullPointerException> { (mapOf("User-Agent" to null) as Map<String, String>).toHeaders() } } @Test fun toMultimapGroupsHeaders() { val headers = Headers.headersOf( "cache-control", "no-cache",
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt
) { internal val keepAliveDurationNs: Long = timeUnit.toNanos(keepAliveDuration) @Volatile private var addressStates: Map<Address, AddressState> = mapOf() private val cleanupQueue: TaskQueue = taskRunner.newQueue() private val cleanupTask = object : Task("$okHttpName ConnectionPool connection closer") {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 16.2K bytes - Viewed (0)