Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 567 for fun (0.01 sec)

  1. okhttp-zstd/api/okhttp-zstd.api

    public final class okhttp3/zstd/Zstd : okhttp3/CompressionInterceptor$DecompressionAlgorithm {
    	public static final field INSTANCE Lokhttp3/zstd/Zstd;
    	public fun decompress (Lokio/BufferedSource;)Lokio/Source;
    	public fun getEncoding ()Ljava/lang/String;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 18:34:32 UTC 2025
    - 259 bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CacheControlJvmTest.kt

      }
    
      @Test
      fun parseCacheControlAndPragmaAreCombined() {
        val headers = headersOf("Cache-Control", "max-age=12", "Pragma", "must-revalidate", "Pragma", "public")
        val cacheControl = parse(headers)
        assertThat(cacheControl.toString()).isEqualTo("max-age=12, public, must-revalidate")
      }
    
      @Test
      fun parseCacheControlHeaderValueIsRetained() {
        val value = "max-age=12"
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/HeadersKotlinTest.kt

    import okhttp3.Headers.Companion.headersOf
    import org.junit.jupiter.api.Test
    
    class HeadersKotlinTest {
      @Test fun getOperator() {
        val headers = headersOf("a", "b", "c", "d")
        assertThat(headers["a"]).isEqualTo("b")
        assertThat(headers["c"]).isEqualTo("d")
        assertThat(headers["e"]).isNull()
      }
    
      @Test fun iteratorOperator() {
        val headers = headersOf("a", "b", "c", "d")
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

      @Throws(Exception::class)
      @JvmStatic
      fun awaitGarbageCollection() {
        Runtime.getRuntime().gc()
        Thread.sleep(100)
        System.runFinalization()
      }
    
      @JvmStatic
      fun assumeNetwork() {
        try {
          InetAddress.getByName("www.google.com")
        } catch (uhe: UnknownHostException) {
          assumeTrue(false, "requires network")
        }
      }
    
      @JvmStatic
      fun assumeNotWindows() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  5. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/AndroidPlatform.kt

          }
        }
      }
    
      override fun newSSLContext(): SSLContext {
        StrictMode.noteSlowCall("newSSLContext")
    
        return super.newSSLContext()
      }
    
      override fun trustManager(sslSocketFactory: SSLSocketFactory): X509TrustManager? =
        socketAdapters
          .find { it.matchesSocketFactory(sslSocketFactory) }
          ?.trustManager(sslSocketFactory)
    
      override fun configureTlsExtensions(
        sslSocket: SSLSocket,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 29 16:52:38 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Handshake.kt

        level = DeprecationLevel.ERROR,
      )
      fun localPrincipal(): Principal? = localPrincipal
    
      override fun equals(other: Any?): Boolean =
        other is Handshake &&
          other.tlsVersion == tlsVersion &&
          other.cipherSuite == cipherSuite &&
          other.peerCertificates == peerCertificates &&
          other.localCertificates == localCertificates
    
      override fun hashCode(): Int {
        var result = 17
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Apr 05 09:48:10 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  7. .teamcity/src/main/kotlin/configurations/GradleBuildConfigurationDefaults.kt

        else
            echo "${'$'}REPO does not exist"
        fi
    
        """.trimIndent()
    
    fun checkCleanDirWindows(
        dir: String,
        exitOnFailure: Boolean = true,
    ) = """
    
        IF exist $dir (
            TREE $dir
            RMDIR /S /Q $dir
            ${if (exitOnFailure) "EXIT 1" else ""}
        )
        """.trimIndent()
    
    fun BuildFeatures.publishBuildStatusToGithub(model: CIBuildModel) {
        if (model.publishStatusToGitHub) {
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Wed Jun 11 12:58:05 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  8. okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/ConfiguredPublicSuffixDatabaseTest.kt

    import okio.Buffer
    import org.junit.jupiter.api.Test
    
    class ConfiguredPublicSuffixDatabaseTest {
      private val list = ConfiguredPublicSuffixList()
      private val publicSuffixDatabase = PublicSuffixDatabase(list)
    
      @Test fun longestMatchWins() {
        list.bytes =
          Buffer()
            .writeUtf8("com\n")
            .writeUtf8("my.square.com\n")
            .writeUtf8("square.com\n")
            .readByteString()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformUrlTest.kt

    class WebPlatformUrlTest {
      class TestDataParamProvider : SimpleProvider() {
        override fun arguments() = ArrayList<Any>(loadTests())
      }
    
      /** Test how [HttpUrl] does against the web platform test suite.  */
      @ArgumentsSource(TestDataParamProvider::class)
      @ParameterizedTest
      fun httpUrl(testData: WebPlatformUrlTestData) {
        if (!testData.scheme.isEmpty() && !HTTP_URL_SCHEMES.contains(testData.scheme)) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/WebSocket.kt

       */
      fun close(
        code: Int,
        reason: String?,
      ): Boolean
    
      /**
       * Immediately and violently release resources held by this web socket, discarding any enqueued
       * messages. This does nothing if the web socket has already been closed or canceled.
       */
      fun cancel()
    
      fun interface Factory {
        /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top