- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 268 for Same (0.14 sec)
-
mockwebserver/README.md
server to create representative test cases. Or test that your code survives in awkward-to-reproduce situations like 500 errors or slow-loading responses. ### Example Use MockWebServer the same way that you use mocking frameworks like [Mockito](https://github.com/mockito/mockito): 1. Script the mocks. 2. Run application code. 3. Verify that the expected requests were made. Here's a complete example:
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Dec 17 15:34:10 GMT 2023 - 5K bytes - Viewed (1) -
docs/features/events.md
private long callStartNanos; private void printEvent(String name) { long nowNanos = System.nanoTime(); if (name.equals("callStart")) { callStartNanos = nowNanos; } long elapsedNanos = nowNanos - callStartNanos; System.out.printf("%.3f %s%n", elapsedNanos / 1000000000d, name); } @Override public void callStart(Call call) { printEvent("callStart"); }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 7.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt
*/ var noNewExchanges = false /** * If true, this connection may not be used for coalesced requests. These are requests that could * share the same connection without sharing the same hostname. */ private var noCoalescedConnections = false /** * The number of times there was a problem establishing a stream that could be due to route * chosen. Guarded by this.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 15.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt
import okio.ByteString import okio.ByteString.Companion.encodeUtf8 import okio.Source import okio.Timeout /** * Replicates a single upstream source into multiple downstream sources. Each downstream source * returns the same bytes as the upstream source. Downstream sources may read data either as it * is returned by upstream, or after the upstream source has been exhausted. *
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt
import okhttp3.internal.connection.RealRoutePlanner import okhttp3.internal.connection.RouteDatabase /** * Manages reuse of HTTP and HTTP/2 connections for reduced network latency. HTTP requests that * share the same [Address] may share a [Connection]. This class implements the policy * of which connections to keep open for future use. * * @constructor Create a new connection pool with tuning parameters appropriate for a single-user
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 03 20:39:41 GMT 2024 - 5.6K bytes - Viewed (0) -
samples/slack/src/main/java/okhttp3/slack/SlackApi.java
* dashboard to create a client ID and secret for this application. * * <p>You must configure your Slack API OAuth and Permissions page with a localhost URL like {@code * http://localhost:53203/oauth/}, passing the same port to this class’ constructor. */ public final class SlackApi { private final HttpUrl baseUrl = HttpUrl.get("https://slack.com/api/"); private final OkHttpClient httpClient; private final Moshi moshi;
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Jul 06 19:30:55 GMT 2018 - 4.4K bytes - Viewed (1) -
docs/changelogs/changelog_4x.md
Android 10. Android uses reflection to look up a magic `checkServerTrusted()` method and we didn't have it. * Fix: Explicitly specify the remote server name when making HTTPS connections on Android 5. In 4.3.0 we introduced a regression where server name indication (SNI) was broken on Android 5. ## Version 4.3.0 _2019-12-31_
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 17 13:25:31 GMT 2024 - 25.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt
private var exchangeFinder: ExchangeFinder? = null var connection: RealConnection? = null private set private var timeoutEarlyExit = false /** * This is the same value as [exchange], but scoped to the execution of the network interceptors. * The [exchange] field is assigned to null when its streams end, which may be before or after the * network interceptors return. */
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 17.9K bytes - Viewed (2) -
okhttp/src/test/java/okhttp3/HttpUrlTest.kt
// ideographic space assertThat(parse("http://h/\u3000").encodedPath).isEqualTo("/%E3%80%80") } @Test fun newBuilderResolve() { // Non-exhaustive tests because implementation is the same as resolve. val base = parse("http://host/a/b") assertThat(base.newBuilder("https://host2")!!.build()) .isEqualTo(parse("https://host2/")) assertThat(base.newBuilder("//host2")!!.build())
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 67.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
assertThat(LinkedHashSet(responseHeaders.values("a"))).isEqualTo(newSet("c", "e")) assertThat(responseHeaders.name(0)).isEqualTo("A") assertThat(responseHeaders.value(0)).isEqualTo("c") assertThat(responseHeaders.name(1)).isEqualTo("B") assertThat(responseHeaders.value(1)).isEqualTo("d") assertThat(responseHeaders.name(2)).isEqualTo("A") assertThat(responseHeaders.value(2)).isEqualTo("e") response.body.close() }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0)