- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for cookieStrings (0.37 sec)
-
okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt
override fun saveFromResponse( url: HttpUrl, cookies: List<Cookie>, ) { val cookieStrings = mutableListOf<String>() for (cookie in cookies) { cookieStrings.add(cookieToString(cookie, true)) } val multimap = mapOf("Set-Cookie" to cookieStrings) try { cookieHandler.put(url.toUri(), multimap) } catch (e: IOException) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:10:43 UTC 2024 - 3.8K bytes - Viewed (0) -
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/test/java/okhttp3/CookieTest.kt
"a=b; Path=/c; Domain=example.com; Max-Age=5; Secure; ; SameSite=Lax", ) for (stringA in cookieStrings) { val cookieA = parseCookie(0, url, stringA!!) for (stringB in cookieStrings) { val cookieB = parseCookie(0, url, stringB!!) if (stringA == stringB) { assertThat(cookieB.hashCode()).isEqualTo(cookieA.hashCode())
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 24.3K bytes - Viewed (0)