Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MutableMap (0.26 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        object : CookieHandler() {
          override fun put(
            uri: URI?,
            responseHeaders: MutableMap<String, MutableList<String>>?,
          ) = TODO()
    
          override fun get(
            uri: URI?,
            requestHeaders: MutableMap<String, MutableList<String>>?,
          ): MutableMap<String, MutableList<String>> = TODO()
        }
    
      private fun newInterceptorChain(): Interceptor.Chain =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

          apply {
            if (tag == null) {
              if (tags.isNotEmpty()) {
                (tags as MutableMap).remove(type)
              }
            } else {
              val mutableTags =
                when {
                  tags.isEmpty() -> mutableMapOf<KClass<*>, Any>().also { tags = it }
                  else -> tags as MutableMap<KClass<*>, Any>
                }
              mutableTags[type] = type.cast(tag)
            }
          }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 13.1K bytes
    - Viewed (1)
  3. okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt

    /**
     * Tests how each code point is encoded and decoded in the context of each URL component.
     *
     * This supports [HttpUrlTest].
     */
    class UrlComponentEncodingTester private constructor() {
      private val encodings: MutableMap<Int, Encoding> = LinkedHashMap()
    
      private fun allAscii(encoding: Encoding) =
        apply {
          for (i in 0..127) {
            encodings[i] = encoding
          }
        }
    
      fun override(
        encoding: Encoding,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top