Search Options

Results per page
Sort
Preferred Languages
Advance

Results 521 - 530 of 710 for fun (0.01 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheStrategy.kt

         * response cache won't be used.
         */
        private fun hasConditions(request: Request): Boolean =
          request.header("If-Modified-Since") != null || request.header("If-None-Match") != null
      }
    
      companion object {
        /** Returns true if [response] can be stored to later serve another request. */
        fun isCacheable(
          response: Response,
          request: Request,
        ): Boolean {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Huffman.kt

          sink.writeByte(accumulator.toInt())
        }
      }
    
      fun encodedLength(bytes: ByteString): Int {
        var bitCount = 0L
    
        for (i in 0 until bytes.size) {
          val byteIn = bytes[i] and 0xff
          bitCount += CODE_BIT_COUNTS[byteIn].toLong()
        }
    
        return ((bitCount + 7) shr 3).toInt() // Round up to an even byte.
      }
    
      fun decode(
        source: BufferedSource,
        byteCount: Long,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. okcurl/src/main/kotlin/okhttp3/curl/logging/LoggingUtil.kt

    import java.util.logging.LogRecord
    import java.util.logging.Logger
    import okhttp3.internal.http2.Http2
    
    class LoggingUtil {
      companion object {
        private val activeLoggers = mutableListOf<Logger>()
    
        fun configureLogging(
          debug: Boolean,
          showHttp2Frames: Boolean,
          sslDebug: Boolean,
        ) {
          if (debug || showHttp2Frames || sslDebug) {
            if (sslDebug) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTask.kt

            }
        }
    
        private
        fun findMismatches(originalChanges: List<AcceptedApiChange>, sortedChanges: List<AcceptedApiChange>): List<AcceptedApiChange> {
            return originalChanges.filterIndexed { index, acceptedApiChange -> sortedChanges[index] != acceptedApiChange }
        }
    
        private
        fun buildErrorMessage(formattedMismatches: Map<File, String>): String {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Nov 29 14:03:44 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. build-logic/buildquality/src/main/kotlin/gradlebuild.configure-ci-artifacts.gradle.kts

            val taskPathToReports = allTasks.associate { it.path to it.customReports() + it.attachedReportLocations() }.filter { it.value.isNotEmpty() }
            globalExtension.taskPathToReports = taskPathToReports
        }
    }
    
    fun Task.customReports(): List<File> = when (this) {
        is ValidatePlugins -> listOf(outputFile.get().asFile)
        is FindBrokenInternalLinks -> listOf(reportFile.get().asFile)
        is DistributionTest -> listOf(
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Dec 24 14:15:15 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticator.kt

     */
    class JavaNetAuthenticator(
      private val defaultDns: Dns = Dns.SYSTEM,
    ) : okhttp3.Authenticator {
      @Throws(IOException::class)
      override fun authenticate(
        route: Route?,
        response: Response,
      ): Request? {
        val challenges = response.challenges()
        val request = response.request
        val url = request.url
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformToAsciiTest.kt

          "xn--1ug.example",
          // OkHttp doesn't implement CheckJoiners.
          "\u200D.example",
          // OkHttp doesn't implement CheckBidi.
          "يa",
        )
    
      @Test
      fun test() {
        val list = WebPlatformToAsciiData.load()
        val failures = mutableListOf<Throwable>()
        for (entry in list) {
          var failure: Throwable? = null
          try {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/AbstractBuildScanInfoCollectingService.kt

            val monitoredTaskPaths: SetProperty<String>
        }
    
        override fun onFinish(event: FinishEvent) {
            if (event !is TaskFinishEvent) {
                return
            }
    
            val taskPath = event.descriptor.taskPath
            if (shouldInclude(taskPath)) {
                action(taskPath, event.result)
            }
        }
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Jun 10 05:45:46 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  9. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupRootPlugin.kt

            }
        }
    
        private
        fun Task.findTraceJson(): List<File> {
            if (this !is Test) {
                return emptyList()
            }
            // e.g. build/test-results/embeddedIntegTest/trace.json
            return listOf(project.layout.buildDirectory.file("test-results/$name/trace.json").get().asFile)
        }
    
        private
        fun Task.genericHtmlReports() = when (this) {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Jul 06 10:57:13 UTC 2023
    - 3K bytes
    - Viewed (0)
  10. okhttp-brotli/api/okhttp-brotli.api

    public final class okhttp3/brotli/Brotli : okhttp3/CompressionInterceptor$DecompressionAlgorithm {
    	public static final field INSTANCE Lokhttp3/brotli/Brotli;
    	public fun decompress (Lokio/BufferedSource;)Lokio/Source;
    	public fun getEncoding ()Ljava/lang/String;
    }
    
    public final class okhttp3/brotli/BrotliInterceptor : okhttp3/CompressionInterceptor {
    	public static final field INSTANCE Lokhttp3/brotli/BrotliInterceptor;
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 31 18:34:32 UTC 2025
    - 428 bytes
    - Viewed (0)
Back to top