- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 80 for mutableListOf (0.06 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt
body = SlowRequestBody, ), ) call.execute().use { response -> assertThat(response.body.string()).isEqualTo("abc") } val expectedEvents = mutableListOf<String>() // Start out with standard events... expectedEvents += "CallStart" expectedEvents += "ProxySelectStart" expectedEvents += "ProxySelectEnd" expectedEvents += "DnsStart"
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 9.4K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
hasBody = contentLength > 0L || HttpMethod.permitsRequestBody(request.method) requestBodySink.write(socket.source, contentLength) } chunked -> { chunkSizes = mutableListOf() hasBody = true while (true) { val chunkSize = socket.source .readUtf8LineStrict() .trim()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 02 20:36:00 UTC 2025 - 40.3K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dispatcher.kt
* into user code. * * @return true if the dispatcher is currently running calls. */ private fun promoteAndExecute(): Boolean { assertLockNotHeld() val executableCalls = mutableListOf<AsyncCall>() val isRunning: Boolean synchronized(this) { val i = readyAsyncCalls.iterator() while (i.hasNext()) { val asyncCall = i.next()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed May 28 23:28:25 UTC 2025 - 8.7K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt
* configured for testing. */ class OkHttpClientTestRule : BeforeEachCallback, AfterEachCallback { private val clientEventsList = mutableListOf<String>() private var testClient: OkHttpClient? = null private var uncaughtException: Throwable? = null private lateinit var testName: String
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri May 30 21:28:20 UTC 2025 - 10.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt
call2.execute().use { assertEquals(".", it.body.string()) } val events2 = listener.eventSequence.filter { isConnectionEvent(it) }.map { it.name } val expectedEvents2 = mutableListOf<String>().apply { add("CallStart") if (connectionType != H2) { addAll(listOf("ConnectStart", "ConnectEnd")) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 9.8K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt
constructor( val requiredPlatformName: String? = null, val platform: Platform? = null, ) : BeforeEachCallback, AfterEachCallback, InvocationInterceptor { private val versionChecks = mutableListOf<Pair<Matcher<out Any>, Matcher<out Any>>>() override fun beforeEach(context: ExtensionContext) { setupPlatform() } override fun afterEach(context: ExtensionContext) { resetPlatform()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 15.4K bytes - Viewed (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartBody.kt
constructor( boundary: String = UUID.randomUUID().toString(), ) { private val boundary: ByteString = boundary.encodeUtf8() private var type = MIXED private val parts = mutableListOf<Part>() /** * Set the MIME type. Expected values for `type` are [MIXED] (the default), [ALTERNATIVE], * [DIGEST], [PARALLEL] and [FORM]. */ fun setType(type: MediaType) =
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/ConnectionPoolTest.kt
assertThat(c1.calls).isEmpty() // Can't allocate once a leak has been detected. assertThat(c1.noNewExchanges).isTrue() } @Test fun interruptStopsThread() { val taskRunnerThreads = mutableListOf<Thread>() val taskRunner = TaskRunner( RealBackend { runnable -> Thread(runnable, "interruptStopsThread TaskRunner") .also { taskRunnerThreads += it } },
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 12.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Hpack.kt
constructor( source: Source, private val headerTableSizeSetting: Int, private var maxDynamicTableByteCount: Int = headerTableSizeSetting, ) { private val headerList = mutableListOf<Header>() private val source: BufferedSource = source.buffer() // Visible for testing. @JvmField var dynamicTable = arrayOfNulls<Header>(8)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 22.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 14.1K bytes - Viewed (0)