Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RecordingCookieJar (0.14 sec)

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

                "Set-Cookie",
                "c=d; Expires=Fri, 02 Jan 1970 23:59:59 GMT; path=/bar; secure",
              ),
          ),
        )
        val cookieJar = RecordingCookieJar()
        client =
          client.newBuilder()
            .cookieJar(cookieJar)
            .build()
        executeSynchronously("/").assertCode(200)
        val responseCookies = cookieJar.takeResponseCookies()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CacheTest.kt

            .build()
        val response2 = client.newCall(request2).execute()
        assertThat(response2.body.string()).isEqualTo("A")
      }
    
      @Test
      fun cachePlusCookies() {
        val cookieJar = RecordingCookieJar()
        client =
          client.newBuilder()
            .cookieJar(cookieJar)
            .build()
        server.enqueue(
          MockResponse.Builder()
            .addHeader("Set-Cookie: a=FIRST")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
Back to top