- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 565 for soient (0.03 sec)
-
maven-tests/src/main/java/com/squareup/okhttp3/maventest/SampleHttpClient.java
import okhttp3.Request; import okhttp3.Response; public class SampleHttpClient { private final OkHttpClient client; public SampleHttpClient() { client = new OkHttpClient.Builder().build(); } public void makeCall(HttpUrl url) throws IOException { try (Response response = client.newCall(new Request(url, Headers.EMPTY, "GET", null)).execute()) { System.out.println(response.body().string()); } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jul 12 12:05:57 UTC 2025 - 1.1K bytes - Viewed (0) -
android-test/src/test/kotlin/okhttp/android/test/AndroidLoggingTest.kt
@Test fun testHttpLoggingInterceptor() { val interceptor = HttpLoggingInterceptor().apply { level = HttpLoggingInterceptor.Level.BASIC } val client = clientBuilder.addInterceptor(interceptor).build() try { client.newCall(request).execute() } catch (uhe: UnknownHostException) { // expected } val logs = ShadowLog.getLogsForTag(AndroidPlatform.Tag)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 21 14:27:04 UTC 2025 - 3.2K bytes - Viewed (0) -
docs/works_with_okhttp.md
* [OkHttp Idling Resource](https://github.com/JakeWharton/okhttp-idling-resource): An Espresso IdlingResource for OkHttp. * [okhttp-client-mock](https://github.com/gmazzo/okhttp-client-mock): A simple OKHttp client mock, using a programmable request interceptor. * [OkHttp Profiler](https://plugins.jetbrains.com/plugin/11249-okhttp-profiler): An IntelliJ plugin for monitoring OkHttp calls.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Feb 15 16:18:51 UTC 2025 - 3.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt
) serverIpv4.close() serverIpv6.enqueue( MockResponse(body = "hello from IPv6"), ) client = client .newBuilder() .fastFallback(false) .callTimeout(1_000, TimeUnit.MILLISECONDS) .build() val call = client.newCall(Request(url)) assertFailsWith<IOException> { call.execute() }.also { expected ->
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 10.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/config/exentity/DataConfig.java
import org.codelibs.fess.crawler.client.CrawlerClientFactory; import org.codelibs.fess.crawler.client.ftp.FtpAuthentication; import org.codelibs.fess.crawler.client.ftp.FtpClient; import org.codelibs.fess.crawler.client.http.Authentication; import org.codelibs.fess.crawler.client.http.HcHttpClient; import org.codelibs.fess.crawler.client.http.form.FormScheme; import org.codelibs.fess.crawler.client.http.impl.AuthenticationImpl;
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 18.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 24.3K bytes - Viewed (1) -
container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt
val mockServer: MockServerContainer = MockServerContainer(MOCKSERVER_IMAGE) .withNetworkAliases("mockserver") @Test fun testOkHttpDirect() { testRequest { val client = OkHttpClient() val response = client .newCall( Request((mockServer.endpoint + "/person?name=peter").toHttpUrl()), ).execute() assertThat(response.body.string()).contains("Peter the person")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 6.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt
@RegisterExtension val clientTestRule = OkHttpClientTestRule() private val client = clientTestRule.newClient() @StartStop private val server = MockWebServer() @Test fun defaultConfigIsNoTimeout() { val request = Request .Builder() .url(server.url("/")) .build() val call = client.newCall(request) assertThat(call.timeout().timeoutNanos()).isEqualTo(0) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 10.6K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/StrictModeTest.kt
assertThat(violations[0].message).isEqualTo("newSSLContext") } @Test fun testNewCall() { Platform.resetForTests() val client = OkHttpClient() applyStrictMode() // Safe on main client.newCall(Request("https://google.com/robots.txt".toHttpUrl())) assertThat(violations).isEmpty() } private fun applyStrictMode() { StrictMode.setThreadPolicy(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu May 22 14:39:30 UTC 2025 - 2.1K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/LoggingInterceptors.java
private final OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(new LoggingInterceptor()) .build(); public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/helloworld.txt") .build(); Response response = client.newCall(request).execute(); response.body().close(); }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jan 01 15:55:32 UTC 2016 - 2K bytes - Viewed (0)