Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 471 - 480 of 798 for eval (0.03 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectInterceptor.kt

     */
    object ConnectInterceptor : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
        val realChain = chain as RealInterceptorChain
        val exchange = realChain.call.initExchange(realChain)
        val connectedChain = realChain.copy(exchange = exchange)
        return connectedChain.proceed(realChain.request)
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 1.5K bytes
    - Click Count (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/Authenticate.kt

                println("Challenges: ${response.challenges()}")
                val credential = Credentials.basic("jesse", "password1")
                return response.request
                  .newBuilder()
                  .header("Authorization", credential)
                  .build()
              }
            },
          ).build()
    
      fun run() {
        val request =
          Request
            .Builder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2K bytes
    - Click Count (0)
  3. build-logic/dependency-modules/src/main/kotlin/gradlebuild/modules/model/License.kt

     *
     * If the task fails with "no license data in their POM or any parent POM", add a hardcoded
     * entry to the `hardcodedLicenses` map in `GenerateLicenseFile.kt`.
     */
    enum class License(
        val displayName: String,
        val url: String,
        val aliases: List<String> = emptyList(),
    ) {
        Apache2(
            "Apache License, Version 2.0",
            "https://www.apache.org/licenses/LICENSE-2.0",
            listOf(
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Mar 13 13:24:46 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  4. build-logic/src/main/kotlin/okhttp.publish-conventions.gradle.kts

      // Workaround for https://github.com/Kotlin/binary-compatibility-validator/issues/312
      val apiBuild = tasks.register<KotlinApiBuildTask>("androidApiBuild") {
        outputApiFile = project.layout.buildDirectory.file("${this.name}/okhttp.api")
        inputClassesDirs.from(tasks.getByName("compileAndroidMain").outputs)
      }
      val apiCheck = tasks.register<KotlinApiCompareTask>("androidApiCheck") {
        group = "verification"
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:00:38 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  5. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientHttp2Test.kt

     */
    @Ignore("Failing with Netty errors")
    class ApacheHttpClientHttp2Test {
      @Test
      fun testHttp2() {
        val client = HttpAsyncClients.createHttp2Default()
    
        client.use { client ->
          client.start()
          val request = SimpleHttpRequests.get("https://google.com/robots.txt")
          val response = client.execute(request, LoggingCallback).get()
    
          println("Protocol ${response.version}")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Feb 07 06:56:34 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  6. .teamcity/src/main/kotlin/projects/GradleBuildToolRootProject.kt

        branch: VersionedSettingsBranch,
    ) : Project({
            val model =
                CIBuildModel(
                    projectId = "Check",
                    branch = branch,
                    buildScanTags = listOf("Check"),
                    subprojects = JsonBasedGradleSubprojectProvider(File("./subprojects.json")),
                )
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Feb 03 10:41:06 GMT 2026
    - 1.3K bytes
    - Click Count (0)
  7. docs/features/https.md

    === ":material-language-kotlin: Kotlin"
        ```kotlin
          private val client: OkHttpClient
    
          init {
            val trustManager = trustManagerForCertificates(trustedCertificatesInputStream())
            val sslContext = SSLContext.getInstance("TLS")
            sslContext.init(null, arrayOf<TrustManager>(trustManager), null)
            val sslSocketFactory = sslContext.socketFactory
    
            client = OkHttpClient.Builder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  8. build-logic/src/main/kotlin/AlpnVersions.kt

     * https://github.com/xjdr/xio/blob/master/alpn-boot.gradle
     */
    fun alpnBootVersion(): String? {
      val version = System.getProperty("alpn.boot.version")
    
      if (version != null) {
        return version
      }
    
      val javaVersion = System.getProperty("java.version")
      val match = "1\\.8\\.0_(\\d+)(-.*)?".toRegex().find(javaVersion) ?: return null
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 01 16:35:35 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  9. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/AbstractBuildScanInfoCollectingService.kt

         */
        abstract val collectedInformation: Serializable
    
        interface Params : BuildServiceParameters {
            val monitoredTaskPaths: SetProperty<String>
        }
    
        override fun onFinish(event: FinishEvent) {
            if (event !is TaskFinishEvent) {
                return
            }
    
            val taskPath = event.descriptor.taskPath
            if (shouldInclude(taskPath)) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Jun 10 05:45:46 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  10. okhttp-osgi-tests/build.gradle.kts

       */
        ignore("okhttp3/osgi/workspace/cnf/repo/index.xml.gz")
        ignore("okhttp3/osgi/workspace/cnf/repo/index.xml.gz.sha")
      }
    }
    
    // Expose OSGi jars to the test environment.
    val osgiTestDeploy: Configuration by configurations.creating
    
    val copyOsgiTestDeployment = tasks.register<Copy>("copyOsgiTestDeployment") {
      from(osgiTestDeploy)
      into(layout.buildDirectory.dir("resources/test/okhttp3/osgi/deployments"))
    }
    
    dependencies {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 2.5K bytes
    - Click Count (0)
Back to Top