Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for cookieStrings (0.09 sec)

  1. 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)
  2. 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)
Back to top