Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 231 for codec (0.18 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerAdapter.kt

          tagClass = tagClass,
          tag = tag,
          codec = codec,
        )
      }
    
      /** Returns an adapter that returns a list of values of this type. */
      fun asSequenceOf(
        name: String = "SEQUENCE OF",
        tagClass: Int = DerHeader.TAG_CLASS_UNIVERSAL,
        tag: Long = 16L,
      ): BasicDerAdapter<List<T>> {
        val codec =
          object : BasicDerAdapter.Codec<List<T>> {
            override fun encode(
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

          check(!requestBodyOpen)
        }
    
        val exchangeFinder = this.exchangeFinder!!
        val connection = exchangeFinder.find()
        val codec = connection.newCodec(client, chain)
        val result = Exchange(this, eventListener, exchangeFinder, codec)
        this.interceptorScopedExchange = result
        this.exchange = result
        this.withLock {
          this.requestBodyOpen = true
          this.responseBodyOpen = true
    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)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Huffman.kt

      init {
        for (i in CODE_BIT_COUNTS.indices) {
          addCode(i, CODES[i], CODE_BIT_COUNTS[i].toInt())
        }
      }
    
      @Throws(IOException::class)
      fun encode(
        source: ByteString,
        sink: BufferedSink,
      ) {
        var accumulator = 0L
        var accumulatorBitCount = 0
    
        for (i in 0 until source.size) {
          val symbol = source[i] and 0xff
          val code = CODES[symbol]
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

      val result = Buffer()
      var i = 0
      while (i < address.size) {
        if (i == longestRunOffset) {
          result.writeByte(':'.code)
          i += longestRunLength
          if (i == 16) result.writeByte(':'.code)
        } else {
          if (i > 0) result.writeByte(':'.code)
          val group = address[i] and 0xff shl 8 or (address[i + 1] and 0xff)
          result.writeHexadecimalUnsignedLong(group.toLong())
          i += 2
        }
    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)
  5. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

        // appendCodePoint(). The Punycode algorithm processes code points in increasing code-point
        // order, not in increasing index order.
        val codePoints = mutableListOf<Int>()
    
        // consume all code points before the last delimiter (if there is one)
        //  and copy them to output, fail on any non-basic code point
        val lastDelimiter = string.lastIndexOf('-', limit)
        if (lastDelimiter >= pos) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  6. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

     *
     * The first element on each line is a single hex code point (like 0041) or a hex code point range
     * (like 0030..0039).
     *
     * The second element on each line is a mapping type, like `valid` or `mapped`.
     *
     * For lines that contain a mapping target, the next thing is a sequence of hex code points (like
     * 0031 2044 0034).
     *
     * All other data is ignored.
     */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

      internal class LegacyRedirectInterceptor : Interceptor {
        override fun intercept(chain: Interceptor.Chain): Response {
          val response = chain.proceed(chain.request())
          val code = response.code
          if (code != HTTP_TEMP_REDIRECT && code != HTTP_PERM_REDIRECT) return response
          val method = response.request.method
          if (method == "GET" || method == "HEAD") return response
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

            Encoding.PERCENT,
            '['.code,
            ']'.code,
            '{'.code,
            '}'.code,
            '|'.code,
            '^'.code,
            '\''.code,
            ';'.code,
            '='.code,
            '@'.code,
          )
          .override(
            Encoding.SKIP,
            ':'.code,
            '/'.code,
            '\\'.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)
  9. samples/slack/src/main/java/okhttp3/slack/SlackApi.java

      }
    
      /** See https://api.slack.com/methods/oauth.access. */
      public OAuthSession exchangeCode(String code, HttpUrl redirectUrl) throws IOException {
        HttpUrl url = baseUrl.newBuilder("oauth.access")
            .addQueryParameter("client_id", clientId)
            .addQueryParameter("client_secret", clientSecret)
            .addQueryParameter("code", code)
            .addQueryParameter("redirect_uri", redirectUrl.toString())
            .build();
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Jul 06 19:30:55 GMT 2018
    - 4.4K bytes
    - Viewed (1)
  10. docs/changelogs/changelog_4x.md

    
    ## Version 4.6.0
    
    _2020-04-28_
    
     *  Fix: Follow HTTP 307 and 308 redirects on methods other than GET and POST. We're reluctant to
        change OkHttp's behavior in handling common HTTP status codes, but this fix is overdue! The new
        behavior is now consistent with [RFC 7231][rfc_7231_647], which is newer than OkHttp itself.
        If you want this update with the old behavior use [this interceptor][legacy_interceptor].
    
    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)
Back to top