Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 145 for vararg (0.04 seconds)

  1. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

          }
    
        fun bootstrapDnsHosts(bootstrapDnsHosts: List<InetAddress>?) =
          apply {
            this.bootstrapDnsHosts = bootstrapDnsHosts
          }
    
        fun bootstrapDnsHosts(vararg bootstrapDnsHosts: InetAddress): Builder = bootstrapDnsHosts(bootstrapDnsHosts.toList())
    
        fun systemDns(systemDns: Dns) =
          apply {
            this.systemDns = systemDns
          }
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat May 10 11:15:14 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt

          ResponseBodyStart::class,
          ResponseBodyEnd::class,
          RequestBodyEnd::class,
          ConnectionReleased::class,
          CallEnd::class,
        )
      }
    
      private fun enableTls(vararg protocols: Protocol) {
        client =
          client
            .newBuilder()
            .protocols(protocols.toList())
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 08 21:07:01 GMT 2026
    - 9.7K bytes
    - Click Count (0)
  3. docs/changelogs/upgrading_to_okhttp_4.md

     * **TlsVersion**: javaName
    
    #### Renamed Functions
    
    * **Headers.of()**: for symmetry with `listOf()`, `setOf()`, etc., we’ve replaced
      `Headers.of(String...)` with `headersOf(vararg String)`.
    
    #### Extension Functions
    
    We’ve migrated from static functions to extension functions where we think they fit.
    
    | Java                                | Kotlin                          |
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Click Count (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt

         * that we expect to be known by the remote peer. The peer already has that certificate so
         * transmitting it is unnecessary.
         */
        fun heldCertificate(
          heldCertificate: HeldCertificate,
          vararg intermediates: X509Certificate,
        ) = apply {
          this.heldCertificate = heldCertificate
          this.intermediates = arrayOf(*intermediates) // Defensive copy.
        }
    
        /**
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat May 10 11:15:14 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt

          ConnectStart::class,
          SecureConnectStart::class,
        )
        assertThat(recordedEventTypes).endsWith(CallFailed::class)
      }
    
      private fun buildClient(
        heldCertificate: HeldCertificate?,
        vararg intermediates: X509Certificate,
      ): OkHttpClient {
        val builder =
          HandshakeCertificates
            .Builder()
            .addTrustedCertificate(serverRootCa.certificate)
        if (heldCertificate != null) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 13K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/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 {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  7. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildParams.kt

        stringPropertyOrNull(projectPropertyName) ?: ""
    
    
    fun Project.stringPropertyOrNull(projectPropertyName: String): String? =
        gradleProperty(projectPropertyName).orNull
    
    
    fun Project.selectStringProperties(vararg propertyNames: String): Map<String, String> =
        propertyNames.mapNotNull { propertyName ->
            stringPropertyOrNull(propertyName)?.let { propertyValue ->
                propertyName to propertyValue
            }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Jan 19 05:13:29 GMT 2026
    - 18K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

        assertThat(readFileOrNull(getDirtyFile("k1", 0))).isNull()
      }
    
      private fun assertJournalEquals(vararg expectedBodyLines: String) {
        assertThat(readJournalLines()).isEqualTo(
          listOf(DiskLruCache.MAGIC, DiskLruCache.VERSION_1, "100", "2", "") + expectedBodyLines,
        )
      }
    
      private fun createJournal(vararg bodyLines: String) {
        createJournalWithHeader(
          DiskLruCache.MAGIC,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 59.4K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

              .build(),
          )
        val response1 = call1.execute()
        assertThat(response1.body.string()).isEqualTo("abc")
      }
    
      private fun newServerSocketFactory(
        heldCertificate: HeldCertificate,
        vararg intermediates: X509Certificate,
      ): SSLSocketFactory {
        // Test setup fails on JDK9
        // java.security.KeyStoreException: Certificate chain is not valid
        // at sun.security.pkcs12.PKCS12KeyStore.setKeyEntry
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 24.4K bytes
    - Click Count (2)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt

        assertBytes(0xbe)
        assertThat(hpackWriter!!.headerCount).isEqualTo(2)
      }
    
      private fun newReader(source: Buffer): Hpack.Reader = Hpack.Reader(source, 4096)
    
      private fun byteStream(vararg bytes: Int): Buffer = Buffer().write(intArrayToByteArray(bytes))
    
      private fun checkEntry(
        entry: Header,
        name: String,
        value: String,
        size: Int,
      ) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 38.6K bytes
    - Click Count (0)
Back to Top