Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for receivedResponseAtMillis (0.1 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

          this.responseHeaders = response.headers
          this.handshake = response.handshake
          this.sentRequestMillis = response.sentRequestAtMillis
          this.receivedResponseMillis = response.receivedResponseAtMillis
        }
    
        @Throws(IOException::class)
        fun writeTo(editor: DiskLruCache.Editor) {
          editor.newSink(ENTRY_METADATA).buffer().use { sink ->
            sink.writeUtf8(url.toString()).writeByte('\n'.code)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Mar 20 09:13:37 GMT 2026
    - 26.9K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/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()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Mar 20 09:13:37 GMT 2026
    - 121K bytes
    - Click Count (0)
Back to Top