Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 137 for Value (0.13 sec)

  1. samples/tlssurvey/src/main/kotlin/okhttp3/survey/CipherSuiteSurvey.kt

        }
        println()
        val sortedSuites =
          ianaSuites.suites.sortedBy { ianaSuite ->
            val index = orderBy.indexOfFirst { it.matches(ianaSuite) }
            if (index == -1) Integer.MAX_VALUE else index
          }
        for (suiteId in sortedSuites) {
          print(suiteId.name)
          for (client in clients) {
            print("\t")
            val index = client.enabled.indexOfFirst { it.matches(suiteId) }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 01:44:15 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  2. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappedRange.kt

            }
    
        val b2: Int
          get() = absoluteDelta shr 7 and 0x7f
    
        val b3: Int
          get() = absoluteDelta and 0x7f
    
        companion object {
          const val MAX_VALUE = 0x3FFFF
        }
      }
    
      data class External(
        override val rangeStart: Int,
        val mappedTo: ByteString,
      ) : MappedRange
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

          object : ResponseBody() {
            override fun contentType(): MediaType? {
              return null
            }
    
            override fun contentLength(): Long {
              return Int.MAX_VALUE + 1L
            }
    
            override fun source(): BufferedSource {
              throw AssertionError()
            }
          }
        assertFailsWith<IOException> {
          body.bytes()
        }.also { expected ->
    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)
  4. docs/changelogs/changelog_4x.md

     *  New: `OkHttpClient.Builder.minWebSocketMessageToCompress()` configures a threshold for
        compressing outbound web socket messages. Configure this with 0L to always compress outbound
        messages and `Long.MAX_VALUE` to never compress outbound messages. The default is 1024L which
        compresses messages of size 1 KiB and larger. (Inbound messages are compressed or not based on
        the web socket server's configuration.)
    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)
  5. 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)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

      /** Current calls carried by this connection. */
      val calls = mutableListOf<Reference<RealCall>>()
    
      /** Timestamp when `allocations.size()` reached zero. Also assigned upon initial connection. */
      var idleAtNs = Long.MAX_VALUE
    
      /**
       * Returns true if this is an HTTP/2 connection. Such connections can be used in multiple HTTP
       * requests simultaneously.
       */
      internal val isMultiplexed: Boolean
    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)
  7. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

          .override(Encoding.IDENTITY, '?'.code, '`'.code)
          .override(Encoding.PERCENT, '\''.code)
          .override(Encoding.SKIP, '#'.code, '+'.code)
          .test(UrlComponentEncodingTester.Component.QUERY_VALUE)
      }
    
      @Test
      fun fragmentCharacters() {
        UrlComponentEncodingTester.newInstance()
          .override(
            Encoding.IDENTITY,
            ' '.code,
            '"'.code,
            '#'.code,
    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)
  8. okhttp/src/main/kotlin/okhttp3/Headers.kt

          name: String,
          value: String,
        ) = commonAdd(name, value)
    
        /**
         * Add a header with the specified name and value. Does validation of header names, allowing
         * non-ASCII values.
         */
        fun addUnsafeNonAscii(
          name: String,
          value: String,
        ) = apply {
          headersCheckName(name)
          addLenient(name, value)
        }
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt

            continue@loop
          }
        }
    
        var pos = 0
        while (pos < value.length) {
          val tokenStart = pos
          pos = value.indexOfElement("=,;", pos)
          val directive = value.substring(tokenStart, pos).trim()
          val parameter: String?
    
          if (pos == value.length || value[pos] == ',' || value[pos] == ';') {
            pos++ // Consume ',' or ';' (if necessary).
            parameter = null
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/HeadersTest.kt

        val headers = headersOf("a", "b", "c", "d")
        assertFailsWith<IndexOutOfBoundsException> {
          headers.value(-1)
        }
        assertThat(headers.value(0)).isEqualTo("b")
        assertThat(headers.value(1)).isEqualTo("d")
        assertFailsWith<IndexOutOfBoundsException> {
          headers.value(2)
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.6K bytes
    - Viewed (0)
Back to top