- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for takeResponseCookies (0.08 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingCookieJar.kt
fun enqueueRequestCookies(vararg cookies: Cookie) { requestCookies.add(cookies.toList()) } fun takeResponseCookies(): List<Cookie> { return responseCookies.removeFirst() } fun assertResponseCookies(vararg cookies: String?) { assertThat(takeResponseCookies().map(Cookie::toString)).containsExactly(*cookies) } override fun saveFromResponse( url: HttpUrl,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
client = client.newBuilder() .cookieJar(cookieJar) .build() executeSynchronously("/").assertCode(200) val responseCookies = cookieJar.takeResponseCookies() assertThat(responseCookies.size).isEqualTo(2) assertThat(responseCookies[0].toString()) .isEqualTo("a=b; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/") assertThat(responseCookies[1].toString())
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 142.5K bytes - Viewed (0)