- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for something (0.19 sec)
-
okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt
} } /** * These assertions ensure the [PublicSuffixDatabase] remains correct. The specification is * very flexible regarding wildcard rules, but this flexibility is not something currently used * in practice. To simplify the implementation, we've avoided implementing the flexible rules in * favor of supporting what's actually used in practice. That means if these assertions ever fail,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 18 01:24:38 GMT 2024 - 6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cache.kt
* .build(); * ``` * * ## Force a Cache Response * * Sometimes you'll want to show resources if they are available immediately, but not otherwise. * This can be used so your application can show *something* while waiting for the latest data to be * downloaded. To restrict a request to locally-cached resources, add the `only-if-cached` * directive: * * ```java * Request request = new Request.Builder()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 26.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
server.enqueue(MockResponse(body = "abc")) val client = client.newBuilder() .retryOnConnectionFailure(false) .build() // Seed the connection pool so we have something that can fail. val request1 = Request.Builder().url(server.url("/")).build() val response1 = client.newCall(request1).execute() assertThat(response1.body.string()).isEqualTo("abc")
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) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
) // Slow connection 1KiB/second. server.enqueue( MockResponse(body = body), ) client = client.newBuilder() .readTimeout(Duration.ofMillis(500)) // Half a second to read something. .build() // Make a call expecting a timeout reading the response body. val call1 = client.newCall(Request(server.url("/"))) val response1 = call1.execute()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 75.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
// The URL will remain available if hasNext() returned true... val i = cache.urls() assertThat(i.hasNext()).isTrue() // ...so even when we evict the element, we still get something back. cache.evictAll() assertThat(i.next()).isEqualTo(url.toString()) // Remove does nothing. But most importantly, it doesn't throw! i.remove() } @Test
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) -
okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt
} /** * When writing a set of headers fails due to an `IOException`, make sure the writer is left * in a consistent state so the next writer also gets an `IOException` also instead of * something worse (like an [IllegalStateException]. * * * See https://github.com/square/okhttp/issues/1651 */ @Test fun socketExceptionWhileWritingHeaders() { peer.acceptFrame() // SYN_STREAM.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 75.4K bytes - Viewed (0)