- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for RecordedRequest (0.08 sec)
-
okhttp/src/test/java/okhttp3/CallTest.kt
.assertReceivedResponseAtMillis(sentAt, receivedAt) val recordedRequest = server.takeRequest() assertThat(recordedRequest.method).isEqualTo("GET") assertThat(recordedRequest.headers["User-Agent"]).isEqualTo("SyncApiTest") assertThat(recordedRequest.body.size).isEqualTo(0) assertThat(recordedRequest.headers["Content-Length"]).isNull() } @Test fun buildRequestUsingHttpUrl() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 142.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
val response = getResponse(request) response.close() val recordedRequest = server.takeRequest() assertThat(recordedRequest.headers.values("D")).isEqualTo(listOf("e", "f")) assertThat(recordedRequest.headers["G"]).isNull() assertThat(recordedRequest.headers["null"]).isNull() } @Test fun getRequestPropertyReturnsLastValue() { val request =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
import java.util.concurrent.atomic.AtomicReference import javax.net.ssl.HostnameVerifier import kotlin.test.assertFailsWith import mockwebserver3.MockResponse import mockwebserver3.MockWebServer import mockwebserver3.RecordedRequest import mockwebserver3.SocketPolicy.DisconnectAtEnd import mockwebserver3.junit5.internal.MockWebServerInstance import okhttp3.Cache.Companion.key import okhttp3.Headers.Companion.headersOf
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 108.6K bytes - Viewed (0)