Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for samp (0.14 sec)

  1. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  2. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  3. docs/features/events.md

    A single HTTP call may require follow-up requests to be made to handle authentication challenges, redirects, and HTTP-layer timeouts. In such cases multiple connections, requests, and responses may be attempted. Follow-ups are another reason a single call may trigger multiple events of the same type.
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

      val PREFIX_STRING = "xn--"
      val PREFIX = PREFIX_STRING.encodeUtf8()
    
      private const val BASE = 36
      private const val TMIN = 1
      private const val TMAX = 26
      private const val SKEW = 38
      private const val DAMP = 700
      private const val INITIAL_BIAS = 72
      private const val INITIAL_N = 0x80
    
      /**
       * Returns null if any label is oversized so much that the encoder cannot encode it without
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  5. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  6. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Jul 06 19:30:55 GMT 2018
    - 4.4K bytes
    - Viewed (1)
  7. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  8. docs/changelogs/changelog_4x.md

    
    ## Version 4.4.1
    
    _2020-03-08_
    
     *  Fix: Don't reuse a connection on redirect if certs match but DNS does not. For better
        locality and performance OkHttp attempts to use the same pooled connection across redirects and
        follow-ups. It independently shares connections when the IP addresses and certificates match,
        even if the host names do not. In 4.4.0 we introduced a regression where we shared a connection
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  9. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  10. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
Back to top