Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for inside (0.23 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/WebSocketWriterTest.kt

    import org.junit.jupiter.api.extension.RegisterExtension
    
    class WebSocketWriterTest {
      private val data = Buffer()
      private val random = Random(0)
    
      /**
       * Check all data as verified inside of the test. We do this in an AfterEachCallback so that
       * exceptions thrown from the test do not cause this check to fail.
       */
      @RegisterExtension
      val noDataLeftBehind =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

        // This explicit check avoids activating in Android Studio with Android specific classes
        // available when running plugins inside the IDE.
        val isAndroid: Boolean
          get() = "Dalvik" == System.getProperty("java.vm.name")
    
        private val isConscryptPreferred: Boolean
          get() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
  3. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        assertThat(adapter.toDer(null)).isEqualTo(bytes)
        assertThat(adapter.fromDer(bytes)).isNull()
      }
    
      /** Make the claimed length of a nested object larger than the enclosing object. */
      @Test fun `large object inside small object`() {
        val bytes = "301b300d06092a864886f70d010101050003847fffffff000504030201".decodeHex()
        assertFailsWith<ProtocolException> {
          CertificateAdapters.subjectPublicKeyInfo.fromDer(bytes)
    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)
  4. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        assertFailsWith<UnsupportedOperationException> {
          client.newBuilder()
            .sslSocketFactory(handshakeCertificates.sslSocketFactory())
        }
      }
    
      /** Confirm that runtime exceptions thrown inside of OkHttp propagate to the caller.  */
      @Test
      fun unexpectedExceptionSync() {
        client =
          client.newBuilder()
            .dns { hostname: String? -> throw RuntimeException("boom!") }
            .build()
    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)
  5. okhttp/src/test/java/okhttp3/RequestBodyTest.kt

          assertThat(buffer.readUtf8()).isEqualTo("Hello")
        }
      }
    
      private inline fun <T> assertOnFileDescriptor(
        content: String? = null,
        fn: (FileDescriptor) -> T,
      ): T {
        return assertOnPath(content) {
          FileInputStream(filePath.toFile()).use { fis ->
            fn(fis.fd)
          }
        }
      }
    
      private inline fun <T> assertOnPath(
        content: String? = null,
        fn: (okio.Path) -> T,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (1)
  6. okhttp/src/main/kotlin/okhttp3/Interceptor.kt

      companion object {
        /**
         * Constructs an interceptor for a lambda. This compact syntax is most useful for inline
         * interceptors.
         *
         * ```kotlin
         * val interceptor = Interceptor { chain: Interceptor.Chain ->
         *     chain.proceed(chain.request())
         * }
         * ```
         */
        inline operator fun invoke(crossinline block: (chain: Chain) -> Response): Interceptor = Interceptor { block(it) }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_4x.md

        bytes in would always yield deflated bytes out and this isn't always the case!
    
     *  Fix: Reliably update and invalidate the disk cache on windows. As originally designed our
        internal `DiskLruCache` assumes an inode-like file system, where it's fine to delete files that
        are currently being read or written. On Windows the file system forbids this so we must be more
        careful when deleting and renaming files.
    
    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)
  8. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

     *    119 : Ignored.
     *    120 : Valid.
     *    121 : Disallowed
     *    122 : Mapped inline to the sequence: [b2].
     *    123 : Mapped inline to the sequence: [b2a].
     *    124 : Mapped inline to the sequence: [b2, b3].
     *    125 : Mapped inline to the sequence: [b2a, b3].
     *    126 : Mapped inline to the sequence: [b2, b3a].
     *    127 : Mapped inline to the sequence: [b2a, b3a].
     *
     * The range goes until the beginning of the next range.
     *
    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)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/Locks.kt

     */
    internal object Locks {
      inline fun <T> Dispatcher.withLock(action: () -> T): T {
        contract { callsInPlace(action, InvocationKind.EXACTLY_ONCE) }
        return lock.withLock(action)
      }
    
      inline fun <T> RealConnection.withLock(action: () -> T): T {
        contract { callsInPlace(action, InvocationKind.EXACTLY_ONCE) }
        return lock.withLock(action)
      }
    
      inline fun <T> RealCall.withLock(action: () -> T): T {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/-ResponseBodyCommon.kt

    internal fun ResponseBody.commonBytes() = commonConsumeSource(BufferedSource::readByteArray) { it.size }
    
    internal fun ResponseBody.commonByteString() = commonConsumeSource(BufferedSource::readByteString) { it.size }
    
    internal inline fun <T : Any> ResponseBody.commonConsumeSource(
      consumer: (BufferedSource) -> T,
      sizeMapper: (T) -> Int,
    ): T {
      val contentLength = contentLength()
      if (contentLength > Int.MAX_VALUE) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.3K bytes
    - Viewed (0)
Back to top