Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for _new (7.3 sec)

  1. okhttp/src/test/java/okhttp3/CallTest.kt

        val response = client.newCall(request).execute()
        assertThat(response.body.string()).isEqualTo("response body")
    
        // First CONNECT call needs a new connection.
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
    
        // Second CONNECT call needs a new connection.
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
    
        // GET reuses the connection from the second connect.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CacheTest.kt

        val servedDate = Date(System.currentTimeMillis() + TimeUnit.HOURS.toMillis(-2))
        val dateFormat: DateFormat = SimpleDateFormat("EEE dd-MMM-yyyy HH:mm:ss z", Locale.US)
        dateFormat.timeZone = TimeZone.getTimeZone("America/New_York")
        val lastModifiedString = dateFormat.format(lastModifiedDate)
        val servedString = dateFormat.format(servedDate)
    
        // This response should be conditionally cached.
        server.enqueue(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
Back to top