- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 44 for com (0.11 sec)
-
okhttp/src/test/java/okhttp3/FakeRoutePlanner.kt
private var nextPlanId = 0 private var nextPlanIndex = 0 val plans = mutableListOf<FakePlan>() override val deferredPlans = ArrayDeque<RoutePlanner.Plan>() override val address = factory.newAddress("example.com") fun addPlan(): FakePlan { return FakePlan(nextPlanId++).also { plans += it } } override fun isCanceled() = canceled override fun plan(): FakePlan {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 24 04:40:49 GMT 2024 - 6.2K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt
if (parentFile == directory) return true return parentFile.isDescendentOf(directory) } /** * See FinalizationTester for discussion on how to best trigger GC in tests. * https://android.googlesource.com/platform/libcore/+/master/support/src/test/java/libcore/ * java/lang/ref/FinalizationTester.java */ @Throws(Exception::class) @JvmStatic fun awaitGarbageCollection() { Runtime.getRuntime().gc()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 4.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
} taskFaker.runNextTask() // Check that a rebuilt journal behaves normally. assertValue("a", "a", "a") assertValue("b", "b", "b") } /** @see [Issue 28](https://github.com/JakeWharton/DiskLruCache/issues/28) */ @ParameterizedTest @ArgumentsSource(FileSystemParamProvider::class) fun rebuildJournalOnRepeatedReadsWithOpenAndClose(parameters: Pair<FileSystem, Boolean>) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 75.8K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/guide/GetExample.java
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 1.3K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/CheckHandshake.java
.addNetworkInterceptor(CHECK_HANDSHAKE_INTERCEPTOR) .build(); public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/helloworld.txt") .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 2.1K bytes - Viewed (0) -
okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt
initCause(e) }, ) } }, ) } catch (e: Exception) { // Handle any errors that might leak out // https://issuetracker.google.com/issues/319957694 callback.onFailure( hostname, UnknownHostException(e.message).apply { initCause(e) }, ) } } @ExperimentalOkHttpApi
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 10:07:48 GMT 2024 - 2.8K bytes - Viewed (0) -
okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt
/** A call that keeps track of whether its response body is closed. */ private class ClosableCall : FailingCall() { private val response = Response.Builder() .request(Request("https://example.com/".toHttpUrl())) .protocol(Protocol.HTTP_1_1) .message("OK") .code(200) .body( object : ResponseBody() { override fun contentType() = null
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 18 01:24:38 GMT 2024 - 5.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
testResponseCaching(TransferKind.END_OF_STREAM) } /** * Skipping bytes in the input stream caused ResponseCache corruption. * http://code.google.com/p/android/issues/detail?id=8175 */ private fun testResponseCaching(transferKind: TransferKind) { val mockResponse = MockResponse.Builder()
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/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt
* * If [routes] is non-null these are the resolved routes (ie. IP addresses) for the connection. * This is used to coalesce related domains to the same HTTP/2 connection, such as `square.com` * and `square.ca`. */ fun callAcquirePooledConnection( doExtensiveHealthChecks: Boolean, address: Address, connectionUser: ConnectionUser, routes: List<Route>?,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 16.2K bytes - Viewed (0) -
.devcontainer/devcontainer.json
{ "image": "mcr.microsoft.com/devcontainers/java:17-bookworm", "features": { "ghcr.io/devcontainers/features/java:1": { "version": "17" } }, "customizations": { "vscode": { "settings": { "java.server.launchMode": "Standard" }, "extensions": [ "vscjava.vscode-java-pack", "vscjava.vscode-gradle" ] } }
Json - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Apr 14 14:24:05 GMT 2024 - 429 bytes - Viewed (0)