- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for assertResponseCookies (0.2 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, cookies: List<Cookie>, ) {
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/CacheTest.kt
.build(), ) val url = server.url("/") assertThat(get(url).body.string()).isEqualTo("A") cookieJar.assertResponseCookies("a=FIRST; path=/") assertThat(get(url).body.string()).isEqualTo("A") cookieJar.assertResponseCookies("a=SECOND; path=/") } @Test fun getHeadersReturnsNetworkEndToEndHeaders() { server.enqueue( MockResponse.Builder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 108.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
) val call = client.newCall(Request(server.url("/"))) val response = call.execute() assertThat(response.body.string()).isEqualTo("") cookieJar.assertResponseCookies("a=b; path=/") } @ParameterizedTest @ArgumentsSource(ProtocolParamProvider::class) fun cancelWithStreamNotCompleted( protocol: Protocol, mockWebServer: MockWebServer, ) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 75.3K bytes - Viewed (0)