Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. okhttp/src/test/java/okhttp3/CookiesTest.kt

        val url = "https://www.squareup.com/".toHttpUrl()
        cookieJar.saveFromResponse(url, listOf(parse(url, "a=android; Domain=squareup.com")!!))
        val actualCookies = cookieJar.loadForRequest(url)
        assertThat(actualCookies.size).isEqualTo(1)
        assertThat(actualCookies[0].name).isEqualTo("a")
        assertThat(actualCookies[0].value).isEqualTo("android")
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

      }
    
      @Test
      fun javaNetCookieJar() {
        val cookieJar: JavaNetCookieJar = JavaNetCookieJar(newCookieHandler())
        val httpUrl = "".toHttpUrl()
        val loadForRequest: List<Cookie> = cookieJar.loadForRequest(httpUrl)
        cookieJar.saveFromResponse(httpUrl, listOf(Cookie.Builder().build()))
      }
    
      @Test
      fun loggingEventListener() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top