Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 74 for samp (0.14 sec)

  1. docs/features/connections.md

    Addresses specify a webserver (like `github.com`) and all of the **static** configuration necessary to connect to that server: the port number, HTTPS settings, and preferred network protocols (like HTTP/2).
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Feb 21 03:33:59 GMT 2022
    - 5.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

     * * `Response.body().charStream().close()`
     * * `Response.body().byteStream().close()`
     * * `Response.body().bytes()`
     * * `Response.body().string()`
     *
     * There is no benefit to invoking multiple `close()` methods for the same response body.
     *
     * For synchronous calls, the easiest way to make sure a response body is closed is with a `try`
     * block. With this structure the compiler inserts an implicit `finally` clause that calls
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http/RealInterceptorChain.kt

        calls++
    
        if (exchange != null) {
          check(exchange.finder.routePlanner.sameHostAndPort(request.url)) {
            "network interceptor ${interceptors[index - 1]} must retain the same host and port"
          }
          check(calls == 1) {
            "network interceptor ${interceptors[index - 1]} must call proceed() exactly once"
          }
        }
    
        // Call the next interceptor in the chain.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

          }
    
        return dateFormat.format(date)
      }
    
      /**
       * A timestamp like "191216030210Z" or "20191215190210-0800" for 2019-12-15T19:02:10-08:00. This
       * is the same as [UTC_TIME] with the exception of the 4-digit year.
       */
      val GENERALIZED_TIME =
        BasicDerAdapter(
          name = "GENERALIZED TIME",
          tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
          tag = 24L,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

       * them, so the CN is unused.
       */
      @Test fun verifyNonAsciiSubjectAlt() {
        // Expecting actual:
        //  ["bar.com", "花子.co.jp"]
        // to contain exactly (and in same order):
        //  ["bar.com", "������.co.jp"]
        platform.assumeNotBouncyCastle()
    
        // CN=foo.com, subjectAlt=bar.com, subjectAlt=花子.co.jp
        // (hanako.co.jp in kanji)
        val session =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 40.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

        "0000ffff".decodeHex(),
        // UTF-32LE.
        "ffff0000".decodeHex(),
      )
    
    /**
     * Returns an array containing only elements found in this array and also in [other]. The returned
     * elements are in the same order as in this.
     */
    internal fun Array<String>.intersect(
      other: Array<String>,
      comparator: Comparator<in String>,
    ): Array<String> {
      val result = mutableListOf<String>()
      for (a in this) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

        server.listener.assertClosed(1000, "Hello!")
      }
    
      @Test
      @Throws(Exception::class)
      fun clientAndServerCloseClosesConnection() {
        // Send close from both sides at the same time.
        server.webSocket!!.close(1000, "Hello!")
        client.processNextFrame() // Read close, close connection close.
        assertThat(client.closed).isFalse()
        client.webSocket!!.close(1000, "Hi!")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 01:59:58 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  8. docs/changelogs/changelog_3x.md

    ## Version 3.14.2
    
    _2019-05-19_
    
     *  Fix: Lock in a route when recovering from an HTTP/2 connection error. We had a bug where two
        calls that failed at the same time could cause OkHttp to crash with a `NoSuchElementException`
        instead of the expected `IOException`.
    
     *  Fix: Don't crash with a `NullPointerException` when formatting an error message describing a
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        assertFailsWith<SocketTimeoutException> {
          call1.execute()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("timeout")
        }
    
        // Confirm that a subsequent request on the same connection is not impacted.
        val call2 = client.newCall(Request(server.url("/")))
        val response2 = call2.execute()
        assertThat(response2.body.string()).isEqualTo("A")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/InterceptorTest.kt

        assertFailsWith<IllegalStateException> {
          client.newCall(request).execute()
        }.also { expected ->
          assertThat(expected.message).isEqualTo(
            "network interceptor $interceptor must retain the same host and port",
          )
        }
      }
    
      @Test
      fun networkInterceptorsHaveConnectionAccess() {
        server.enqueue(MockResponse())
        val interceptor =
          Interceptor { chain: Interceptor.Chain ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 27.8K bytes
    - Viewed (0)
Back to top