Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 425 for apply (0.15 sec)

  1. okhttp/src/test/java/okhttp3/RecordedResponse.kt

        apply {
          assertThat(response!!.code).isEqualTo(expectedCode)
        }
    
      fun assertSuccessful() =
        apply {
          assertThat(failure).isNull()
          assertThat(response!!.isSuccessful).isTrue()
        }
    
      fun assertNotSuccessful() =
        apply {
          assertThat(response!!.isSuccessful).isFalse()
        }
    
      fun assertHeader(
        name: String,
        vararg values: String?,
      ) = apply {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

    fun Response.Builder.commonRequest(request: Request) =
      apply {
        this.request = request
      }
    
    fun Response.Builder.commonProtocol(protocol: Protocol) =
      apply {
        this.protocol = protocol
      }
    
    fun Response.Builder.commonCode(code: Int) =
      apply {
        this.code = code
      }
    
    fun Response.Builder.commonMessage(message: String) =
      apply {
        this.message = message
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  3. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/tasks/BuildReceipt.kt

            private
            fun newSimpleDateFormatUTC(pattern: String) = SimpleDateFormat(pattern).apply {
                timeZone = TimeZone.getTimeZone("UTC")
            }
    
            fun readBuildReceiptFromString(buildReceipt: String) =
                Properties().apply { load(buildReceipt.reader()) }
    
            const val buildReceiptFileName = "build-receipt.properties"
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  4. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.build-logic.groovy-dsl-gradle-plugin.gradle.kts

        testImplementation("org.objenesis:objenesis")
    }
    
    tasks.withType<GroovyCompile>().configureEach {
        groovyOptions.apply {
            encoding = "utf-8"
            forkOptions.jvmArgs?.add("-XX:+HeapDumpOnOutOfMemoryError")
        }
        options.apply {
            isFork = true
            encoding = "utf-8"
            compilerArgs = mutableListOf("-Xlint:-options", "-Xlint:-path")
        }
    }
    
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Oct 03 15:32:00 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/osgi/OsgiTest.kt

            "osgi.identity;filter:='(osgi.identity=$it)'"
          }
    
        val bndEditModel =
          BndEditModel(workspace).apply {
            // Temporary project to satisfy bnd API.
            project = Project(workspace, workspaceDir.toFile())
          }
    
        return Bndrun(bndEditModel).apply {
          setRunfw(RESOLVE_OSGI_FRAMEWORK)
          runee = RESOLVE_JAVA_VERSION
          setRunRequires(runRequireString)
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  6. okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt

                  UnknownHostException(e.message).apply {
                    initCause(e)
                  },
                )
              }
            },
          )
        } catch (e: Exception) {
          // Handle any errors that might leak out
          // https://issuetracker.google.com/issues/319957694
          callback.onFailure(
            hostname,
            UnknownHostException(e.message).apply {
              initCause(e)
            },
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 10:07:48 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

      private fun allAscii(encoding: Encoding) =
        apply {
          for (i in 0..127) {
            encodings[i] = encoding
          }
        }
    
      fun override(
        encoding: Encoding,
        vararg codePoints: Int,
      ) = apply {
        for (codePoint in codePoints) {
          encodings[codePoint] = encoding
        }
      }
    
      fun nonPrintableAscii(encoding: Encoding) =
        apply {
          encodings[ 0x0] = encoding // Null character
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

            println(buildResult.output)
    
            val richReportFile = inputBuildDir.resolve("binary-compatibility/build/japi/japi.html").apply {
                assertTrue("Rich report file doesn't exist", isFile)
            }
    
            return CheckResult(failure, scrapeRichReport(richReportFile), buildResult).apply {
                println(richReport.toText())
                block()
            }
        }
    
        /**
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Sep 25 13:49:37 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/platform/ConscryptPlatform.kt

        SSLContext.getInstance("TLS", provider)
    
      override fun platformTrustManager(): X509TrustManager {
        val trustManagers =
          TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()).apply {
            init(null as KeyStore?)
          }.trustManagers!!
        check(trustManagers.size == 1 && trustManagers[0] is X509TrustManager) {
          "Unexpected default trust managers: ${trustManagers.contentToString()}"
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/connection/RetryConnectionTest.kt

        assertThat(retryTlsHandshake(exception)).isFalse()
      }
    
      @Test fun nonRetryableSSLHandshakeException() {
        val exception =
          SSLHandshakeException("Certificate handshake exception").apply {
            initCause(CertificateException())
          }
        assertThat(retryTlsHandshake(exception)).isFalse()
      }
    
      @Test fun retryableSSLHandshakeException() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
Back to top