Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for offlet (0.16 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        assertThat(Adapters.PRINTABLE_STRING.fromDer(bytes)).isEqualTo("hi")
        assertThat(Adapters.PRINTABLE_STRING.toDer("hi")).isEqualTo(bytes)
      }
    
      @Test fun `cannot decode utc time with offset`() {
        assertFailsWith<ProtocolException> {
          Adapters.UTC_TIME.fromDer("17113139313231353139303231302d30383030".decodeHex())
        }.also { expected ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

          assertThat(Thread.holdsLock(lock), "Called with lock $lock")
            .isFalse()
        }
    
        if (enforceOrder) {
          checkForStartEvent(e)
        }
    
        eventSequence.offer(e)
      }
    
      private fun checkForStartEvent(e: ConnectionEvent) {
        if (eventSequence.isEmpty()) {
          assertThat(e).isInstanceOf(ConnectionEvent.ConnectStart::class.java)
        } else {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

          result.writeUtf8(string, pos, limit)
          return true
        }
    
        var pos = pos + 4 // 'xn--'.size.
    
        // We'd prefer to operate directly on `result` but it doesn't offer insertCodePoint(), only
        // appendCodePoint(). The Punycode algorithm processes code points in increasing code-point
        // order, not in increasing index order.
        val codePoints = mutableListOf<Int>()
    
    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)
  4. docs/changelogs/changelog_4x.md

    _2020-03-17_
    
    **This release candidate turns on web socket compression.**
    
    The [spec][rfc_7692] includes a sophisticated mechanism for client and server to negotiate
    compression features. We strive to offer great performance in our default configuration and so we're
    making compression the default for everyone starting with this release candidate.
    
    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-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

     * chain. The chain terminates in a self-signed "root" certificate. Signing certificates in the
     * middle of the chain are called "intermediates". Organizations that offer certificate signing are
     * called certificate authorities (CAs).
     *
     * Browsers and other HTTP clients need a set of trusted root certificates to authenticate their
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
  6. okhttp/src/test/java/okhttp3/CallTest.kt

        assertThat(response.header("Content-Encoding")).isEqualTo("gzip")
        assertThat(response.body.source().readByteString()).isEqualTo(
          gzippedBody.snapshot(),
        )
    
        // The request did not offer gzip support.
        val recordedRequest = server.takeRequest()
        assertThat(recordedRequest.headers["Accept-Encoding"]).isNull()
      }
    
      @Test
      fun asyncResponseCanBeConsumedLater() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

    internal fun checkOffsetAndCount(
      arrayLength: Long,
      offset: Long,
      count: Long,
    ) {
      if (offset or count < 0L || offset > arrayLength || arrayLength - offset < count) {
        throw ArrayIndexOutOfBoundsException("length=$arrayLength, offset=$offset, count=$offset")
      }
    }
    
    val commonEmptyHeaders: Headers = Headers.headersOf()
    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)
  8. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

          alreadyEncoded: Boolean,
        ) = apply {
          var offset = 0
          do {
            val segmentEnd = pathSegments.delimiterOffset("/\\", offset, pathSegments.length)
            val addTrailingSlash = segmentEnd < pathSegments.length
            push(pathSegments, offset, segmentEnd, addTrailingSlash, alreadyEncoded)
            offset = segmentEnd + 1
          } while (offset <= pathSegments.length)
        }
    
        fun setPathSegment(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  9. okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt

        val bodySource = response1.body.source()
        assertThat(bodySource.readUtf8()).isEqualTo("ABC.1")
    
        corruptor()
    
        return client.newCall(request).execute()
      }
    
      /**
       * @param delta the offset from the current date to use. Negative values yield dates in the past;
       *     positive values yield dates in the future.
       */
      private fun formatDate(
        delta: Long,
        timeUnit: TimeUnit,
      ): String? {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 6K bytes
    - Viewed (1)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

            delegate.put(element)
            editCount++
          }
        }
    
        override fun iterator() = error("unsupported")
    
        override fun offer(e: T) = error("unsupported")
    
        override fun peek(): T = error("unsupported")
    
        override fun offer(
          element: T,
          timeout: Long,
          unit: TimeUnit,
        ) = error("unsupported")
    
        override fun take() = error("unsupported")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
Back to top