- Sort Score
- Result 10 results
- Languages All
Results 2131 - 2140 of 3,337 for code3 (0.02 sec)
-
samples/guide/src/main/java/okhttp3/recipes/kt/PostPath.kt
.put(path.asRequestBody(fileSystem, MEDIA_TYPE_JSON)) .build() client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") fileSystem.sink(path).use { response.body.source().readAll(it) } println(fileSystem.source(path).buffer().readUtf8()) } } companion object {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.7K bytes - Viewed (0) -
regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientTest.kt
httpClient.close() } @Test fun get() { val request = HttpGet("https://google.com/robots.txt") httpClient.execute(request).use { response -> assertEquals(200, response.code) // TODO enable ALPN later assertEquals(HttpVersion.HTTP_1_1, response.version) } }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PostString.java
.post(RequestBody.create(postBody, MEDIA_TYPE_MARKDOWN)) .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println(response.body().string()); } } public static void main(String... args) throws Exception { new PostString().run(); }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat May 25 18:02:55 UTC 2019 - 1.7K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/DependencyTest.java
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@code Dependency}. * */ class DependencyTest { @Test void testHashCodeNullSafe() { new Dependency().hashCode(); } @Test void testEqualsNullSafe() {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 1.6K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/DistributionManagementTest.java
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@code DistributionManagement}. * */ class DistributionManagementTest { @Test void testHashCodeNullSafe() { new DistributionManagement().hashCode(); } @TestRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 1.7K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/ExclusionTest.java
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@code Exclusion}. * */ class ExclusionTest { @Test void testHashCodeNullSafe() { new Exclusion().hashCode(); } @Test void testEqualsNullSafe() {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 1.6K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/PluginTest.java
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@code Plugin}. * */ class PluginTest { @Test void testHashCodeNullSafe() { new Plugin().hashCode(); } @Test void testEqualsNullSafe() {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 1.6K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/ProfileTest.java
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@code Profile}. * */ class ProfileTest { @Test void testHashCodeNullSafe() { new Profile().hashCode(); } @Test void testEqualsNullSafe() {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 1.6K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/RepositoryPolicyTest.java
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@code RepositoryPolicy}. * */ class RepositoryPolicyTest { @Test void testHashCodeNullSafe() { new RepositoryPolicy().hashCode(); } @Test void testEqualsNullSafe() {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 1.7K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/ResourceTest.java
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@code Resource}. * */ class ResourceTest { @Test void testHashCodeNullSafe() { new Resource().hashCode(); } @Test void testEqualsNullSafe() {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 1.6K bytes - Viewed (0)