Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 863 for Val (0.01 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/ws/MessageInflater.kt

    import okio.Buffer
    import okio.InflaterSource
    
    private const val OCTETS_TO_ADD_BEFORE_INFLATION = 0x0000ffff
    
    class MessageInflater(
      private val noContextTakeover: Boolean,
    ) : Closeable {
      private val deflatedBytes = Buffer()
    
      private val inflater =
        Inflater(
          // nowrap (omits zlib header):
          true,
        )
    
      private val inflaterSource = InflaterSource(deflatedBytes, inflater)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/BinaryCompatibilityRepositoryLifecycle.kt

    import java.io.File
    
    
    class BinaryCompatibilityRepositorySetupRule(private val params: Map<String, Any>) : SetupRule {
    
        companion object {
            const val REPOSITORY_CONTEXT_KEY = "binaryCompatibilityRepository"
        }
    
        /**
         * Each param is a `Set<String>`.
         */
        object Params {
            const val sourceRoots = "sourceRoots"
            const val sourceCompilationClasspath = "sourceCompilationClasspath"
        }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

    class PublicSuffixListGenerator(
      projectRoot: Path = ".".toPath(),
      val fileSystem: FileSystem = FileSystem.SYSTEM,
      val client: OkHttpClient = OkHttpClient(),
    ) {
      private val resources = projectRoot / "okhttp/src/main/resources/okhttp3/internal/publicsuffix"
      private val testResources = projectRoot / "okhttp/src/test/resources/okhttp3/internal/publicsuffix"
      private val publicSuffixListDotDat = testResources / "public_suffix_list.dat"
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 18 01:24:38 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/SocketChannelTest.kt

    }
    
    object Standard : SocketMode() {
      override fun toString(): String = "Standard"
    }
    
    data class TlsInstance(
      val provider: Provider,
      val protocol: Protocol,
      val tlsVersion: TlsVersion,
      val socketMode: SocketMode,
      val tlsExtensionMode: TlsExtensionMode,
    ) : SocketMode() {
      override fun toString(): String = "$provider/$protocol/$tlsVersion/$socketMode/$tlsExtensionMode"
    }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/platform/android/StandardAndroidSocketAdapter.kt

      sslSocketClass: Class<in SSLSocket>,
      private val sslSocketFactoryClass: Class<in SSLSocketFactory>,
      private val paramClass: Class<*>,
    ) : AndroidSocketAdapter(sslSocketClass) {
      override fun matchesSocketFactory(sslSocketFactory: SSLSocketFactory): Boolean = sslSocketFactoryClass.isInstance(sslSocketFactory)
    
      override fun trustManager(sslSocketFactory: SSLSocketFactory): X509TrustManager? {
        val context: Any? =
          readFieldOrNull(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

        serverSocket?.closeQuietly()
      }
    
      override fun toString(): String = "MockHttp2Peer[$port]"
    
      private class OutFrame(
        val sequence: Int,
        val start: Long,
        val truncated: Boolean,
      )
    
      class InFrame(val sequence: Int, val reader: Http2Reader) : Http2Reader.Handler {
        @JvmField var type = -1
        var clearPrevious = false
    
        @JvmField var outFinished = false
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/InterceptorTest.kt

        server.enqueue(
          MockResponse.Builder()
            .code(500)
            .build(),
        )
        val interceptor =
          Interceptor { chain: Interceptor.Chain ->
            val address = chain.connection()!!.route().address
            val sameHost = address.url.host
            val differentPort = address.url.port + 1
            chain.proceed(
              chain.request().newBuilder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  8. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

            .build(),
        )
        val startNanos = System.nanoTime()
        val connection = server.url("/").toUrl().openConnection()
        connection.doOutput = true
        connection.getOutputStream().write("ABCDEF".toByteArray(UTF_8))
        val inputStream = connection.getInputStream()
        assertThat(inputStream.read()).isEqualTo(-1)
        val elapsedNanos = System.nanoTime() - startNanos
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  9. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

            .setBody("ABCDEF")
            .setBodyDelay(1, TimeUnit.SECONDS),
        )
        val startNanos = System.nanoTime()
        val connection = server.url("/").toUrl().openConnection()
        val inputStream = connection.getInputStream()
        assertThat(inputStream.read()).isEqualTo('A'.code)
        val elapsedNanos = System.nanoTime() - startNanos
        val elapsedMillis = TimeUnit.NANOSECONDS.toMillis(elapsedNanos)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt

        val deflater = MessageDeflater(false)
        val inflater = MessageInflater(false)
    
        val goldenValue = "".encodeUtf8()
    
        val deflated = deflater.deflate(goldenValue)
        assertThat(deflated).isEqualTo("00".decodeHex())
        val inflated = inflater.inflate(deflated)
    
        assertThat(inflated).isEqualTo(goldenValue)
      }
    
      @Test fun `inflate deflate with context takeover`() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 06 05:31:00 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top