- Sort Score
- Result 10 results
- Languages All
Results 31 - 36 of 36 for MutableList (0.18 sec)
-
okhttp/src/main/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)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:12:05 UTC 2024 - 23.1K bytes - Viewed (0) -
okhttp/src/main/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 {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 09 12:33:05 UTC 2024 - 63.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
assertThat(server2.takeRequest().sequenceNumber, "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> {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/test/java/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) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 108.6K bytes - Viewed (0) -
okhttp/src/test/java/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( call: Call,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 75.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
body = "proxy auth required", inTunnel = true, ), ) server.enqueue(MockResponse(inTunnel = true)) server.enqueue(MockResponse()) val challengeSchemes: MutableList<String?> = ArrayList() val credential = basic("jesse", "password1") client = client.newBuilder() .sslSocketFactory( handshakeCertificates.sslSocketFactory(),
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 142.5K bytes - Viewed (0)