- Sort Score
- Result 10 results
- Languages All
Results 11 - 13 of 13 for receivedResponseAtMillis (0.2 sec)
-
okhttp/src/test/java/okhttp3/CacheTest.kt
val t0 = System.currentTimeMillis() val response1 = get(server.url("/a")) assertThat(response1.body.string()).isEqualTo("A") assertThat(response1.header("Allow")).isNull() assertThat((response1.receivedResponseAtMillis - t0).toDouble()).isCloseTo(0.0, 250.0) // A conditional cache hit updates the cache. Thread.sleep(500) // Make sure t0 and t1 are distinct. val t1 = System.currentTimeMillis()
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/api/okhttp.api
public final fun peekBody (J)Lokhttp3/ResponseBody; public final fun priorResponse ()Lokhttp3/Response; public final fun protocol ()Lokhttp3/Protocol; public final fun receivedResponseAtMillis ()J public final fun request ()Lokhttp3/Request; public final fun sentRequestAtMillis ()J public fun toString ()Ljava/lang/String; public final fun trailers ()Lokhttp3/Headers; }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:41:01 UTC 2024 - 70.2K bytes - Viewed (0) -
docs/changelogs/changelog_3x.md
* Fix: Retain the response body when an attempt to open a web socket returns a non-101 response code. ## Version 3.3.0 _2016-05-24_ * New: `Response.sentRequestAtMillis()` and `receivedResponseAtMillis()` methods track the system's local time when network calls are made. These replace the `OkHttp-Sent-Millis` and `OkHttp-Received-Millis` headers that were present in earlier versions of OkHttp.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 06 14:55:54 UTC 2022 - 50.8K bytes - Viewed (0)