Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 78 for Hare (0.13 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

        // UTF-32BE.
        "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)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

                writer: DerWriter,
                value: String,
              ) = writer.writeUtf8(value)
            },
        )
    
      /**
       * Based on International Alphabet No. 5. Note that there are bytes that IA5 and US-ASCII
       * disagree on interpretation.
       *
       * TODO(jwilson): constrain to IA5 characters.
       */
      val IA5_STRING =
        BasicDerAdapter(
          name = "IA5 STRING",
    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)
  3. okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt

      }
    
      @Test
      fun tls_stringCiphersAndVersions() {
        // Supporting arbitrary input strings allows users to enable suites and versions that are not
        // yet known to the library, but are supported by the platform.
        ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
          .cipherSuites("MAGIC-CIPHER")
          .tlsVersions("TLS9k")
          .build()
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    
    @Tag("Slow")
    class RealWebSocketTest {
      // NOTE: Fields are named 'client' and 'server' for cognitive simplicity. This differentiation has
      // zero effect on the behavior of the WebSocket API which is why tests are only written once
      // from the perspective of a single peer.
      private val random = Random(0)
      private val client2Server = Pipe(8192L)
    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)
  5. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

              // The cache cannot be written.
            }
          }
        }
    
        return response
      }
    
      /**
       * Returns a new source that writes bytes to [cacheRequest] as they are read by the source
       * consumer. This is careful to discard bytes left over when the stream is closed; otherwise we
       * may never exhaust the source stream and therefore not complete the cached response.
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/InterceptorTest.kt

      @Test
      fun networkInterceptorThrowsRuntimeExceptionAsynchronous() {
        interceptorThrowsRuntimeExceptionAsynchronous(true)
      }
    
      /**
       * When an interceptor throws an unexpected exception, asynchronous calls are canceled. The
       * exception goes to the uncaught exception handler.
       */
      private fun interceptorThrowsRuntimeExceptionAsynchronous(network: Boolean) {
        val boom = RuntimeException("boom!")
    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)
  7. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

     * `::1` will reach the IPv6 server.
     *
     * By orchestrating two different servers with the same port but different IP addresses, we can
     * test what OkHttp does when both are reachable, or if only one is reachable.
     *
     * This test only runs on host machines that have both IPv4 and IPv6 addresses for localhost.
     */
    @Timeout(30)
    class FastFallbackTest {
      @RegisterExtension
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

    @JvmField
    internal val EMPTY_REQUEST: RequestBody = commonEmptyRequestBody
    
    @JvmField
    internal val EMPTY_RESPONSE: ResponseBody = commonEmptyResponse
    
    /** GMT and UTC are equivalent for our purposes. */
    @JvmField
    internal val UTC: TimeZone = TimeZone.getTimeZone("GMT")!!
    
    internal fun threadFactory(
      name: String,
      daemon: Boolean,
    ): ThreadFactory =
      ThreadFactory { runnable ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

            BasicConstraints(
              ca = it[0] as Boolean,
              maxIntermediateCas = it[1] as Long?,
            )
          },
        )
    
      /**
       * Note that only a subset of available choices are implemented.
       *
       * ```
       * GeneralName ::= CHOICE {
       *   otherName                       [0]     OtherName,
       *   rfc822Name                      [1]     IA5String,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.6K bytes
    - Viewed (1)
  10. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

      @BeforeEach
      fun reset() {
        hpackReader = newReader(bytesIn)
        hpackWriter = Hpack.Writer(4096, false, bytesOut)
      }
    
      /**
       * Variable-length quantity special cases strings which are longer than 127 bytes.  Values such as
       * cookies can be 4KiB, and should be possible to send.
       *
       *  http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-12#section-5.2
       */
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 38.2K bytes
    - Viewed (0)
Back to top