- Sort Score
- Num 10 results
- Language All
Results 31 - 37 of 37 for MutableList (0.31 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt
@JvmStatic fun parseAll( url: HttpUrl, headers: Headers, ): List<Cookie> { val cookieStrings = headers.values("Set-Cookie") 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)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 23.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt
internal var encodedPassword = "" internal var host: String? = null internal var port = -1 internal val encodedPathSegments = mutableListOf<String>("") internal var encodedQueryNamesAndValues: MutableList<String?>? = null internal var encodedFragment: String? = null /** * @param scheme either "http" or "https". */ fun scheme(scheme: String) = apply { when {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 63.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt
assertThat(buffer.size).isEqualTo(150) val synStream = peer.takeFrame() assertThat(synStream.type).isEqualTo(Http2.TYPE_HEADERS) for (i in 0..2) { val windowUpdateStreamIds: MutableList<Int?> = ArrayList(2) for (j in 0..1) { val windowUpdate = peer.takeFrame() assertThat(windowUpdate.type).isEqualTo(Http2.TYPE_WINDOW_UPDATE) windowUpdateStreamIds.add(windowUpdate.streamId)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 75.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
.isEqualTo(1) assertThat(server2.takeRequest().exchangeIndex, "Expected connection reuse") .isEqualTo(1) } @Test fun redirectWithProxySelector() { val proxySelectionRequests: MutableList<URI> = ArrayList() client = client .newBuilder() .proxySelector( object : ProxySelector() { override fun select(uri: URI): List<Proxy> {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 133.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
server.enqueue(MockResponse(body = "DEF")) // Enqueue an additional response that show if we burnt a good prior response. server.enqueue( MockResponse(body = "XXX"), ) val connections: MutableList<RealConnection?> = ArrayList() val localClient = client .newBuilder() .eventListener( object : EventListener() { override fun connectionAcquired(
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 67.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
.build(), ) assertThat(conditionalRequest.headers["If-Modified-Since"]) .isEqualTo(lastModifiedDate) } @Test fun testPublicPathConstructor() { val events: MutableList<String> = ArrayList() fileSystem.createDirectories(cache.directoryPath) fileSystem.createDirectories(cache.directoryPath) val loggingFileSystem: FileSystem = object : ForwardingFileSystem(fileSystem) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Mar 20 09:13:37 GMT 2026 - 121K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
.build(), ) server.enqueue( MockResponse .Builder() .inTunnel() .build(), ) server.enqueue(MockResponse()) val challengeSchemes: MutableList<String?> = ArrayList() val credential = basic("jesse", "password1") client = client .newBuilder() .sslSocketFactory( handshakeCertificates.sslSocketFactory(),
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 146.5K bytes - Click Count (0)