Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Values (0.15 sec)

  1. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

            }
          }.toString()
        }
    
        private fun logHeader(
          headers: Headers,
          i: Int,
        ) {
          val value = if (headers.name(i) in headersToRedact) "██" else headers.value(i)
          logger.log(headers.name(i) + ": " + value)
        }
    
        private fun bodyHasUnknownEncoding(headers: Headers): Boolean {
          val contentEncoding = headers["Content-Encoding"] ?: return false
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  2. docs/changelogs/changelog_4x.md

    ## Version 4.9.3
    
    _2021-11-21_
    
     *  Fix: Don't fail HTTP/2 responses if they complete before a `RST_STREAM` is sent.
    
    
    ## Version 4.9.2
    
    _2021-09-30_
    
     *  Fix: Don't include potentially-sensitive header values in `Headers.toString()` or exceptions.
        This applies to `Authorization`, `Cookie`, `Proxy-Authorization`, and `Set-Cookie` headers.
     *  Fix: Don't crash with an `InaccessibleObjectException` when running on JDK17+ with strong
    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)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

     * it easy to get sample values to use in such tests.
     *
     * This class is pretty fast and loose with default values: it attempts to provide values that are
     * well-formed, but doesn't guarantee values are internally consistent. Callers must take care to
     * configure the factory when sample values impact the correctness of the test.
     */
    class TestValueFactory : Closeable {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Cache.kt

          for (i in 0 until size) {
            if (!"Vary".equals(name(i), ignoreCase = true)) {
              continue
            }
    
            val value = value(i)
            if (result == null) {
              result = TreeSet(String.CASE_INSENSITIVE_ORDER)
            }
            for (varyField in value.split(',')) {
              result.add(varyField.trim())
            }
          }
          return result ?: emptySet()
        }
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         *
         * The default value is 0 which imposes no timeout.
         */
        fun callTimeout(duration: KotlinDuration) =
          apply {
            callTimeout = checkDuration("duration", duration)
          }
    
        /**
         * Sets the default connect timeout for new connections. A value of 0 means no timeout,
         * otherwise values must be between 1 and [Integer.MAX_VALUE] when converted to milliseconds.
         *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

     * The range goes until the beginning of the next range.
     *
     * When b2 and b3 are unused, their values are set to 0x2d ('-').
     *
     * Section Index (1,240 bytes)
     * ===========================
     *
     * Each entry is 4 bytes, and represents all the code points that share a 14-bit prefix. Entries are
     * sorted by this 14-bit prefix.
     *
     * We define these values:
     *
     *  * **b0b1s7**: (b0 << 14) + (b1 << 7)
     *  * **b2b3s2**: (b2 << 9) + (b3 << 2)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Cookie.kt

            this.name = name
          }
    
        fun value(value: String) =
          apply {
            require(value.trim() == value) { "value is not trimmed" }
            this.value = value
          }
    
        fun expiresAt(expiresAt: Long) =
          apply {
            var expiresAt = expiresAt
            if (expiresAt <= 0L) expiresAt = Long.MIN_VALUE
            if (expiresAt > MAX_DATE) expiresAt = MAX_DATE
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

        ignoreIoExceptions {
          shutdown(connectionCode)
        }
    
        var streamsToClose: Array<Http2Stream>? = null
        this.withLock {
          if (streams.isNotEmpty()) {
            streamsToClose = streams.values.toTypedArray()
            streams.clear()
          }
        }
    
        streamsToClose?.forEach { stream ->
          ignoreIoExceptions {
            stream.close(streamCode, cause)
          }
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

      apply {
        this.message = message
      }
    
    fun Response.Builder.commonHeader(
      name: String,
      value: String,
    ) = apply {
      headers[name] = value
    }
    
    fun Response.Builder.commonAddHeader(
      name: String,
      value: String,
    ) = apply {
      headers.add(name, value)
    }
    
    fun Response.Builder.commonRemoveHeader(name: String) =
      apply {
        headers.removeAll(name)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

            socketToClose.closeQuietly()
            connectionListener.connectionClosed(connection)
          }
        }
    
        if (connections.isEmpty()) cleanupQueue.cancelAll()
    
        for (policy in addressStates.values) {
          policy.scheduleOpener()
        }
      }
    
      /**
       * Performs maintenance on this pool, evicting the connection that has been idle the longest if
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
Back to top