Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 707 for fun (0.01 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CacheControl.kt

        level = DeprecationLevel.ERROR,
      )
      fun noTransform(): Boolean = noTransform
    
      @JvmName("-deprecated_immutable")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "immutable"),
        level = DeprecationLevel.ERROR,
      )
      fun immutable(): Boolean = immutable
    
      override fun toString(): String = commonToString()
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 10K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/ResponseJvmTest.kt

    class ResponseJvmTest {
      @Test
      fun testEmptyByDefaultIfTrailersNotSet() {
        val response = newResponse("".toResponseBody())
    
        assertThat(response.trailers()).isEmpty()
      }
    
      @Test
      fun worksIfTrailersSet() {
        val response =
          newResponse("".toResponseBody()) {
            trailers(
              object : TrailersSource {
                override fun get() = Headers.headersOf("a", "b")
              },
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jul 07 18:57:05 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Address.kt

        replaceWith = ReplaceWith(expression = "certificatePinner"),
        level = DeprecationLevel.ERROR,
      )
      fun certificatePinner(): CertificatePinner? = certificatePinner
    
      override fun equals(other: Any?): Boolean =
        other is Address &&
          url == other.url &&
          equalsNonHost(other)
    
      override fun hashCode(): Int {
        var result = 17
        result = 31 * result + url.hashCode()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt

                override fun configureSocket(socket: Socket): Socket {
                  socket.setSendBufferSize(SOCKET_BUFFER_SIZE)
                  socket.setReceiveBufferSize(SOCKET_BUFFER_SIZE)
                  return socket
                }
              },
            ).build()
      }
    
      @AfterEach
      fun tearDown() {
        Thread.interrupted() // Clear interrupted state.
      }
    
      @Test
      fun interruptWritingRequestBody() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 18:33:48 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt

       * or null if the resulting URL is not well-formed.
       */
      fun newBuilder(link: String): Builder? =
        try {
          Builder().parse(this, link)
        } catch (_: IllegalArgumentException) {
          null
        }
    
      override fun equals(other: Any?): Boolean = other is HttpUrl && other.url == url
    
      override fun hashCode(): Int = url.hashCode()
    
      override fun toString(): String = url
    
      /**
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 63.5K bytes
    - Click Count (0)
  6. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/Android10Platform.kt

        ).filter { it.isSupported() }
    
      override fun trustManager(sslSocketFactory: SSLSocketFactory): X509TrustManager? =
        socketAdapters
          .find { it.matchesSocketFactory(sslSocketFactory) }
          ?.trustManager(sslSocketFactory)
    
      override fun newSSLContext(): SSLContext {
        StrictMode.noteSlowCall("newSSLContext")
    
        return super.newSSLContext()
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Jul 20 11:25:50 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  7. build-logic/jvm/src/main/kotlin/gradlebuild.unittest-and-compile.gradle.kts

    fun Test.usesEmbeddedExecuter() = systemProperties["org.gradle.integtest.executer"]?.equals("embedded") ?: false
    
    fun Test.configureRerun() {
        if (project.rerunAllTests.get()) {
            doNotTrackState("All tests should re-run")
        }
    }
    
    fun Test.determineMaxRetries() = when {
        project.flakyTestStrategy == FlakyTestStrategy.ONLY -> 4
        else -> 2
    }
    
    fun Test.determineMaxFailures() = when {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Dec 19 06:44:41 GMT 2025
    - 18.9K bytes
    - Click Count (0)
  8. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/tasks/PackageListGenerator.kt

            private
            fun openJarFile(file: Path): ZipInputStream {
                return ZipInputStream(Files.newInputStream(file))
            }
        }
    
        /**
         * Implementation code that can be unit-tested.
         *
         * <p>Visible for testing.</p>
         */
        class Implementation(private val excludes: List<String>, private val includes: List<String>) {
            fun collectPackages(files: Iterable<Path>): Trie {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Apr 11 15:53:18 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt

        override val call: Call,
      ) : CallEvent() {
        override fun closes(event: CallEvent): Boolean = event is CallStart && call == event.call
      }
    
      data class CallFailed(
        override val timestampNs: Long,
        override val call: Call,
        val ioe: IOException,
      ) : CallEvent() {
        override fun closes(event: CallEvent): Boolean = event is CallStart && call == event.call
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Oct 06 13:40:20 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt

            }
            socketHandler.awaitSuccess()
          }
      }
    
      @Test
      fun upgrade() {
        executeAndCheckUpgrade(upgradeRequest())
      }
    
      @Test
      fun upgradeWithEmptyRequestBody() {
        executeAndCheckUpgrade(upgradeRequest().newBuilder().post(RequestBody.EMPTY).build())
      }
    
      @Test
      fun upgradeWithNonEmptyRequestBody() {
        executeAndCheckUpgrade(
          upgradeRequest()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 9.6K bytes
    - Click Count (0)
Back to Top