- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for createDefault (0.19 seconds)
-
regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientTest.kt
* * https://hc.apache.org/httpcomponents-client-5.0.x/index.html */ @Ignore("Failing with Netty errors") @RunWith(AndroidJUnit4::class) class ApacheHttpClientTest { private var httpClient = HttpClients.createDefault() @After fun tearDown() { httpClient.close() } @Test fun get() { val request = HttpGet("https://google.com/robots.txt") httpClient.execute(request).use { response ->Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Feb 07 06:56:34 GMT 2026 - 1.5K bytes - Click Count (0) -
samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt
* * Baseline test if we ned to validate OkHttp behaviour against other popular clients. */ class ApacheHttpClientTest { private val httpClient = HttpClients.createDefault() @StartStop private val server = MockWebServer() @AfterEach fun tearDown() { httpClient.close() } @Test fun get() { server.enqueue( MockResponseCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Feb 04 20:23:14 GMT 2026 - 2.3K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/DependenciesGraphTask.java
.append(String.join(",", nodes)) .append("]}}}"); getLogger().debug("Dependency Graph: " + output.toString()); try (CloseableHttpClient client = HttpClients.createDefault()) { HttpPost postRequest = new HttpPost(url); postRequest.addHeader("Authorization", "token " + token); postRequest.addHeader("Content-Type", "application/json");
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 6.3K bytes - Click Count (0)