Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for 10 (0.12 sec)

  1. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

            override fun contentLength(): Long {
              return 10
            }
    
            override fun source(): BufferedSource {
              return Buffer().writeUtf8("hello")
            }
          }
        assertFailsWith<IOException> {
          body.bytes()
        }.also { expected ->
          assertThat(expected.message).isEqualTo(
            "Content-Length (10) and stream length (5) disagree",
          )
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

    private fun isMappedIpv4Address(address: ByteArray): Boolean {
      if (address.size != 16) return false
    
      for (i in 0 until 10) {
        if (address[i] != 0.toByte()) return false
      }
    
      if (address[10] != 255.toByte()) return false
      if (address[11] != 255.toByte()) return false
    
      return true
    }
    
    /** Encodes an IPv4 address in canonical form according to RFC 4001. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_4x.md

    
    ## Version 4.2.2
    
    _2019-10-06_
    
     *  Fix: When closing a canceled HTTP/2 stream, don't send the `END_STREAM` flag. This could cause
        the server to incorrectly interpret the stream as having completed normally. This is most useful
        when a request body needs to cancel its own call.
    
    
    ## Version 4.2.1
    
    _2019-10-02_
    
    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)
  4. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

      @Test
      fun decodeEcdsa256() {
        // The certificate + private key below was generated programmatically:
        //
        // HeldCertificate heldCertificate = new HeldCertificate.Builder()
        //     .validityInterval(5_000L, 10_000L)
        //     .addSubjectAlternativeName("1.1.1.1")
        //     .addSubjectAlternativeName("cash.app")
        //     .serialNumber(42L)
        //     .commonName("cash.app")
        //     .organizationalUnit("engineering")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

          " hostAddress=${route.socketAddress}" +
          " cipherSuite=${handshake?.cipherSuite ?: "none"}" +
          " protocol=$protocol}"
      }
    
      companion object {
        const val IDLE_CONNECTION_HEALTHY_NS = 10_000_000_000 // 10 seconds.
    
        fun newTestConnection(
          taskRunner: TaskRunner,
          connectionPool: RealConnectionPool,
          route: Route,
          socket: Socket,
          idleAtNs: Long,
        ): RealConnection {
    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)
  6. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

        assertThat(newReader(byteStream()).readInt(10, 31)).isEqualTo(10)
        assertThat(newReader(byteStream()).readInt(0xe0 or 10, 31)).isEqualTo(10)
      }
    
      @Test
      fun readMultibyteInt() {
        assertThat(newReader(byteStream(154, 10)).readInt(31, 31)).isEqualTo(1337)
      }
    
      @Test
      fun writeSingleByteInt() {
        hpackWriter!!.writeInt(10, 31, 0)
        assertBytes(10)
        hpackWriter!!.writeInt(10, 31, 0xe0)
    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)
  7. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

          call = call,
          interceptors = listOf(),
          index = 0,
          exchange = null,
          request = call.request(),
          connectTimeoutMillis = 10_000,
          readTimeoutMillis = 10_000,
          writeTimeoutMillis = 10_000,
        )
      }
    
      companion object {
        private const val PROXY_A_PORT = 1001
        private const val PROXY_A_HOST = "proxya"
        private val proxyA =
          Proxy(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

        // alternative subject starting with a japanese kanji character. This is
        // not supported by Android because the underlying implementation from
        // harmony follows the definition from rfc 1034 page 10 for alternative
        // subject names. This causes the code to drop all alternative subjects.
        assertThat(verifier.verify("bar.com", session)).isTrue()
        assertThat(verifier.verify("a.bar.com", session)).isFalse()
    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)
  9. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

        name.equals("Set-Cookie", ignoreCase = true)
    }
    
    internal fun Char.parseHexDigit(): Int =
      when (this) {
        in '0'..'9' -> this - '0'
        in 'a'..'f' -> this - 'a' + 10
        in 'A'..'F' -> this - 'A' + 10
        else -> -1
      }
    
    internal infix fun Byte.and(mask: Int): Int = toInt() and mask
    
    internal infix fun Short.and(mask: Int): Int = toInt() and mask
    
    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)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

                writer: DerWriter,
                value: String,
              ) = writer.writeUtf8(value)
            },
        )
    
      /**
       * A timestamp like "191216030210Z" or "191215190210-0800" for 2019-12-15T19:02:10-08:00. The
       * cutoff of the 2-digit year is 1950-01-01T00:00:00Z.
       */
      val UTC_TIME =
        BasicDerAdapter(
          name = "UTC TIME",
          tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
          tag = 23L,
    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)
Back to top