- Sort Score
- Result 10 results
- Languages All
Results 1881 - 1890 of 3,061 for toObject (0.05 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ExternalHttp2Example.kt
* limitations under the License. */ package okhttp3.internal.http import okhttp3.OkHttpClient import okhttp3.Protocol import okhttp3.Request object ExternalHttp2Example { @JvmStatic fun main(args: Array<String>) { val client = OkHttpClient .Builder() .protocols(listOf(Protocol.HTTP_2, Protocol.HTTP_1_1)) .build()Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.4K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostFile.kt
) client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") println(response.body.string()) } } companion object { val MEDIA_TYPE_MARKDOWN = "text/x-markdown; charset=utf-8".toMediaType() } } fun main() { PostFile().run()Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/ReserializingTestSetGenerator.java
super(delegate); } public static <E> TestSetGenerator<E> newInstance(TestSetGenerator<E> delegate) { return new ReserializingTestSetGenerator<>(delegate); } @Override public Set<E> create(Object... elements) { return (Set<E>) super.create(elements); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Oct 01 17:18:04 UTC 2021 - 1.4K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacGroupTest.java
*/ class PacGroupTest { private SID mockSid; private PacGroup pacGroup; private final int attributes = 42; @BeforeEach void setUp() { // Mock the SID object mockSid = mock(SID.class); pacGroup = new PacGroup(mockSid, attributes); } /** * Test method for {@link jcifs.pac.PacGroup#PacGroup(jcifs.smb.SID, int)}. */ @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java
} @Override public void tearDown() throws Exception { ComponentUtil.setFessConfig(null); super.tearDown(); } public void test_evaluate() { final Map<String, Object> params = new HashMap<>(); assertNull(groovyEngine.evaluate("", params)); assertEquals("", groovyEngine.evaluate("return ''", params)); assertEquals(1, groovyEngine.evaluate("return 1", params));Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 1.6K bytes - Viewed (0) -
android-test-app/src/main/kotlin/okhttp/android/testapp/MainActivity.kt
println(AndroidPlatform.isSupported) val url = "https://github.com/square/okhttp".toHttpUrl() println(url.topPrivateDomain()) client.newCall(Request(url)).enqueue( object : Callback { override fun onFailure( call: Call, e: IOException, ) { println("failed: $e") } override fun onResponse( call: Call,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Aug 19 08:10:39 UTC 2025 - 1.7K bytes - Viewed (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/publicsuffix/AssetPublicSuffixList.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 28 07:33:49 UTC 2025 - 1.7K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/InterruptibleTask.java
import static com.google.common.util.concurrent.NullnessCasts.uncheckedCastNullableTToT; import org.jspecify.annotations.Nullable; /** Emulation for InterruptibleTask in GWT. */ abstract class InterruptibleTask<T extends @Nullable Object> implements Runnable { @Override public void run() { T result = null; Throwable error = null; if (isDone()) { return; } try { result = runInterruptibly();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.6K bytes - Viewed (0) -
cmd/api-headers_test.go
// Copyright (c) 2015-2021 MinIO, Inc. // // This file is part of MinIO Object Storage stack // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 1.2K bytes - Viewed (0) -
.teamcity/src/main/kotlin/promotion/PublishBranchSnapshotFromQuickFeedback.kt
* limitations under the License. */ package promotion import jetbrains.buildServer.configs.kotlin.ParameterDisplay import jetbrains.buildServer.configs.kotlin.RelativeId object PublishBranchSnapshotFromQuickFeedback : PublishGradleDistributionFullBuild( promotedBranch = "%branch.qualifier%", triggerName = "QuickFeedback", prepTask = "prepSnapshot", promoteTask = "promoteSnapshot",
Registered: Wed Sep 10 11:36:15 UTC 2025 - Last Modified: Thu Mar 20 06:13:56 UTC 2025 - 1.8K bytes - Viewed (0)