Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 116 for vararg (0.23 sec)

  1. okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt

            "http://example.com",
          ).createRequest()
        assertThat(request.header("If-Modified-Since")).isEqualTo(
          "Mon, 18 Aug 2014 15:16:06 GMT",
        )
      }
    
      companion object {
        fun fromArgs(vararg args: String): Main {
          return Main().apply {
            parse(args.toList())
          }
        }
    
        private fun bodyAsString(body: RequestBody?): String {
          return try {
            val buffer = Buffer()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

        "replaced with {@link #check(String, List)}.",
        ReplaceWith("check(hostname, peerCertificates.toList())"),
      )
      @Throws(SSLPeerUnverifiedException::class)
      fun check(
        hostname: String,
        vararg peerCertificates: Certificate,
      ) {
        check(hostname, peerCertificates.toList())
      }
    
      /**
       * Returns list of matching certificates' pins for the hostname. Returns an empty list if the
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

      /** See `org.graalvm.nativeimage.ImageInfo`. */
      @JvmStatic val isGraalVmImage = System.getProperty("org.graalvm.nativeimage.imagecode") != null
    
      @JvmStatic
      fun headerEntries(vararg elements: String?): List<Header> {
        return List(elements.size / 2) { Header(elements[it * 2]!!, elements[it * 2 + 1]!!) }
      }
    
      @JvmStatic
      fun repeat(
        c: Char,
        count: Int,
      ): String {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. 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                          |
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt

        }
      }
    }
    
    private fun Char.charCode() =
      code.toString(16).let {
        if (it.length < 2) {
          "0$it"
        } else {
          it
        }
      }
    
    internal fun commonHeadersOf(vararg inputNamesAndValues: String): Headers {
      require(inputNamesAndValues.size % 2 == 0) { "Expected alternating header names and values" }
    
      // Make a defensive copy and clean it up.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/ws/WebSocketRecorder.kt

        val event = nextEvent() as Failure
        assertThat(event.response).isNull()
        assertThat(event.t).isSameAs(t)
      }
    
      fun assertFailure(
        cls: Class<out IOException?>?,
        vararg messages: String,
      ) {
        val event = nextEvent() as Failure
        assertThat(event.response).isNull()
        assertThat(event.t.javaClass).isEqualTo(cls)
        if (messages.isNotEmpty()) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CertificateChainCleanerTest.kt

              .certificateAuthority(length - i)
              .serialNumber(i.toLong())
              .build(),
          )
        }
        return result
      }
    
      private fun list(vararg heldCertificates: HeldCertificate): List<Certificate> {
        val result: MutableList<Certificate> = ArrayList()
        for (heldCertificate in heldCertificates) {
          result.add(heldCertificate.certificate)
        }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

          newHeadersToRedact += headersToRedact
          newHeadersToRedact += name
          headersToRedact = newHeadersToRedact
        }
    
        fun redactQueryParams(vararg name: String) {
          val newQueryParamsNameToRedact = TreeSet(String.CASE_INSENSITIVE_ORDER)
          newQueryParamsNameToRedact += queryParamsNameToRedact
          newQueryParamsNameToRedact.addAll(name)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  9. 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
          }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Oct 31 09:27:31 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. 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.
        }
    
        /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top