Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 89 for Tarang (0.2 sec)

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

          ).isTrue()
        }
    
      fun assertFailure(vararg messages: String) =
        apply {
          assertThat(failure, "No failure found").isNotNull()
          assertThat(messages).contains(failure!!.message)
        }
    
      fun assertFailureMatches(vararg patterns: String) =
        apply {
          val message = failure!!.message!!
          assertThat(
    Plain Text
    - Registered: Fri Apr 12 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingCookieJar.kt

      private val responseCookies: Deque<List<Cookie>> = ArrayDeque()
    
      fun enqueueRequestCookies(vararg cookies: Cookie) {
        requestCookies.add(cookies.toList())
      }
    
      fun takeResponseCookies(): List<Cookie> {
        return responseCookies.removeFirst()
      }
    
      fun assertResponseCookies(vararg cookies: String?) {
        assertThat(takeResponseCookies().map(Cookie::toString)).containsExactly(*cookies)
      }
    
    Plain Text
    - Registered: Fri Apr 12 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  3. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/kotlindsl/kotlin-dsl-upstream-candidates.kt

    fun Project.execAndGetStdout(workingDir: File, ignoreExitValue: Boolean, vararg args: String): String {
        val out = ByteArrayOutputStream()
        exec {
            isIgnoreExitValue = ignoreExitValue
            commandLine(*args)
            standardOutput = out
            this.workingDir = workingDir
        }
        return out.toString().trim()
    }
    
    
    fun Project.execAndGetStdoutIgnoringError(vararg args: String) = execAndGetStdout(File("."), true, *args)
    
    
    Plain Text
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 933 bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/UrlComponentEncodingTesterJvm.kt

       * strict than the others.
       */
      fun escapeForUri(vararg codePoints: Int) =
        apply {
          uriEscapedCodePoints.append(String(*codePoints))
        }
    
      /**
       * Configure code points to be stripped in conversion to `java.net.URI`. That class is more
       * strict than the others.
       */
      fun stripForUri(vararg codePoints: Int) =
        apply {
          uriStrippedCodePoints.append(String(*codePoints))
    Plain Text
    - Registered: Fri Apr 12 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

            fun assertHasInformation(vararg information: String) {
                assertThat("Has information", richReport.information.map { it.message }, CoreMatchers.equalTo(information.toList()))
            }
    
            fun assertHasAccepted(vararg accepted: String) {
                assertThat("Has accepted", richReport.accepted.map { it.message }, CoreMatchers.equalTo(accepted.toList()))
            }
    
    Plain Text
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Mon Sep 25 13:49:37 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/connection/RetryConnectionTest.kt

      }
    
      private fun createSocketWithEnabledProtocols(vararg tlsVersions: TlsVersion): SSLSocket {
        return (handshakeCertificates.sslSocketFactory().createSocket() as SSLSocket).apply {
          enabledProtocols = javaNames(*tlsVersions)
        }
      }
    
      private fun assertEnabledProtocols(
        socket: SSLSocket,
        vararg required: TlsVersion,
      ) {
    Plain Text
    - Registered: Fri Apr 12 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt

      override fun lookup(hostname: String): List<InetAddress> {
        requestedHosts.add(hostname)
        return hostAddresses[hostname] ?: throw UnknownHostException()
      }
    
      fun assertRequests(vararg expectedHosts: String?) {
        assertThat(requestedHosts).containsExactly(*expectedHosts)
        requestedHosts.clear()
      }
    
      /** Allocates and returns `count` fake IPv4 addresses like [255.0.0.100, 255.0.0.101].  */
    Plain Text
    - Registered: Fri Apr 12 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/tls/BasicTrustRootIndex.kt

    import java.security.cert.X509Certificate
    import javax.security.auth.x500.X500Principal
    
    /** A simple index that of trusted root certificates that have been loaded into memory. */
    class BasicTrustRootIndex(vararg caCerts: X509Certificate) : TrustRootIndex {
      private val subjectToCaCerts: Map<X500Principal, Set<X509Certificate>>
    
      init {
        val map = mutableMapOf<X500Principal, MutableSet<X509Certificate>>()
    Plain Text
    - Registered: Fri Apr 12 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/TestTls13Request.kt

      try {
        for (url in urls) {
          sendRequest(client, url)
        }
      } finally {
        client.dispatcher.executorService.shutdownNow()
        client.connectionPool.evictAll()
      }
    }
    
    private fun buildClient(vararg specs: ConnectionSpec): OkHttpClient {
      return OkHttpClient.Builder()
        .connectionSpecs(listOf(*specs))
        .build()
    }
    
    private fun sendRequest(
      client: OkHttpClient,
      url: String,
    ) {
    Plain Text
    - Registered: Fri Apr 12 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. buildSrc/src/main/kotlin/Osgi.kt

    import org.gradle.api.tasks.bundling.Jar
    import org.gradle.kotlin.dsl.dependencies
    import org.gradle.kotlin.dsl.findByType
    import org.gradle.kotlin.dsl.get
    import org.gradle.kotlin.dsl.getByName
    
    fun Project.applyOsgi(vararg bndProperties: String) {
      plugins.withId("org.jetbrains.kotlin.jvm") {
        applyOsgi("jar", "osgiApi", bndProperties)
      }
    }
    
    private fun Project.applyOsgi(
      jarTaskName: String,
    Plain Text
    - Registered: Fri Apr 12 11:42:09 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top