Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 86 of 86 for mutableListOf (0.11 sec)

  1. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

        internal var dispatcher: Dispatcher = Dispatcher()
        internal var connectionPool: ConnectionPool? = null
        internal val interceptors: MutableList<Interceptor> = mutableListOf()
        internal val networkInterceptors: MutableList<Interceptor> = mutableListOf()
        internal var eventListenerFactory: EventListener.Factory = EventListener.NONE.asFactory()
        internal var retryOnConnectionFailure = true
        internal var fastFallback = true
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          var cookies: MutableList<Cookie>? = null
    
          for (i in 0 until cookieStrings.size) {
            val cookie = parse(url, cookieStrings[i]) ?: continue
            if (cookies == null) cookies = mutableListOf()
            cookies.add(cookie)
          }
    
          return if (cookies != null) {
            Collections.unmodifiableList(cookies)
          } else {
            emptyList()
          }
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:12:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

        return Request.Builder().url(url)
      }
    
      internal class LogRecorder(
        val prefix: Regex = Regex(""),
      ) : HttpLoggingInterceptor.Logger {
        private val logs = mutableListOf<String>()
        private var index = 0
    
        fun assertLogEqual(expected: String) =
          apply {
            assertThat(index, "No more messages found")
              .isLessThan(logs.size)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 37.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        assertThat(ackFrame.streamId).isEqualTo(0)
        assertThat(ackFrame.ack).isTrue()
        return connection
      }
    
      private class RecordingPushObserver : PushObserver {
        val events = mutableListOf<Any>()
    
        @Synchronized fun takeEvent(): Any {
          while (events.isEmpty()) {
            wait()
          }
          return events.removeAt(0)
        }
    
        @Synchronized override fun onRequest(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CallTest.kt

      }
    
      @Test
      fun dnsReturnsZeroIpAddresses() {
        // Configure a DNS that returns our local MockWebServer for android.com.
        val dns = FakeDns()
        val ipAddresses = mutableListOf<InetAddress>()
        dns["android.com"] = ipAddresses
        client =
          client.newBuilder()
            .dns(dns)
            .build()
        server.enqueue(MockResponse())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

          )
          for (line in bodyLines) {
            writeUtf8(line)
            writeUtf8("\n")
          }
        }
      }
    
      private fun readJournalLines(): List<String> {
        val result = mutableListOf<String>()
        filesystem.read(journalFile) {
          while (true) {
            val line = readUtf8Line() ?: break
            result.add(line)
          }
        }
        return result
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
Back to top