Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 863 for Val (0.02 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

        val altIpaNames = getSubjectAltNames(certificate, ALT_IPA_NAME)
        val altDnsNames = getSubjectAltNames(certificate, ALT_DNS_NAME)
        return altIpaNames + altDnsNames
      }
    
      private fun getSubjectAltNames(
        certificate: X509Certificate,
        type: Int,
      ): List<String> {
        try {
          val subjectAltNames = certificate.subjectAlternativeNames ?: return emptyList()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

    class TaskQueue internal constructor(
      internal val taskRunner: TaskRunner,
      internal val name: String,
    ) {
      val lock: ReentrantLock = ReentrantLock()
    
      internal var shutdown = false
    
      /** This queue's currently-executing task, or null if none is currently executing. */
      internal var activeTask: Task? = null
    
      /** Scheduled tasks ordered by [Task.nextExecuteNanoTime]. */
      internal val futureTasks = mutableListOf<Task>()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/PostStreaming.kt

    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.RequestBody
    import okio.BufferedSink
    
    class PostStreaming {
      private val client = OkHttpClient()
    
      fun run() {
        val requestBody =
          object : RequestBody() {
            override fun contentType() = MEDIA_TYPE_MARKDOWN
    
            override fun writeTo(sink: BufferedSink) {
              sink.writeUtf8("Numbers\n")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportParameter.kt

    import org.gradle.workers.WorkParameters
    
    
    interface IncubatingApiReportParameter : WorkParameters {
        val srcDirs: ConfigurableFileCollection
        val htmlReportFile: RegularFileProperty
        val textReportFile: RegularFileProperty
        val title: Property<String>
        val releasedVersionsFile: RegularFileProperty
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  5. okhttp-dnsoverhttps/README.md

    ```
    
    ### Usage
    
    ```
      val appCache = Cache(File("cacheDir", "okhttpcache"), 10 * 1024 * 1024)
      val bootstrapClient = OkHttpClient.Builder().cache(appCache).build()
    
      val dns = DnsOverHttps.Builder().client(bootstrapClient)
        .url("https://dns.google/dns-query".toHttpUrl())
        .bootstrapDnsHosts(InetAddress.getByName("8.8.4.4"), InetAddress.getByName("8.8.8.8"))
        .build()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 740 bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

            .build(),
        )
        server.enqueue(
          MockResponse(body = "A"),
        )
        val startNanos = System.nanoTime()
        val connection1 = getResponse(newRequest("/"))
        val inputStream = connection1.body.byteStream()
        inputStream.close()
        val elapsedNanos = System.nanoTime() - startNanos
        val elapsedMillis = TimeUnit.NANOSECONDS.toMillis(elapsedNanos)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  7. .teamcity/src/main/kotlin/promotion/BasePublishGradleDistribution.kt

    import vcsroots.gradlePromotionMaster
    
    abstract class BasePublishGradleDistribution(
        // The branch to be promoted
        val promotedBranch: String,
        val prepTask: String?,
        val triggerName: String,
        val gitUserName: String = "bot-teamcity",
        val gitUserEmail: String = "******@****.***",
        val extraParameters: String = "",
        vcsRootId: String = gradlePromotionMaster,
        cleanCheckout: Boolean = true
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Feb 07 17:05:02 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt

    fun buildIdnaMappingTableData(table: SimpleIdnaMappingTable): IdnaMappingTableData {
      val simplified = mergeAdjacentRanges(table.mappings)
      val withoutSectionSpans = withoutSectionSpans(simplified)
      val sections = sections(withoutSectionSpans)
    
      val rangesBuffer = Buffer()
      val mappingsBuffer = StringBuilder()
      val sectionIndexBuffer = Buffer()
    
      var previousMappedRanges: List<MappedRange>? = null
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt

            )
            .dns(dns)
            .build()
    
        server.enqueue(MockResponse())
    
        val url = server.url("/").newBuilder().host("localhost.localdomain").build()
        val call = client.newCall(Request(url = url))
        val response = call.execute()
        assertThat(response.isSuccessful).isTrue()
    
        val recordedRequest = server.takeRequest()
        assertThat(recordedRequest.handshakeServerNames).containsExactly(url.host)
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

        // StreamReset stream was reset: PROT...
        val clientCert2 =
          HeldCertificate.Builder()
            .serialNumber(4L)
            .commonName("Jethro Willis")
            .build()
        val client = buildClient(clientCert2)
        val socketFactory = buildServerSslSocketFactory()
        server.useHttps(socketFactory)
        server.requireClientAuth()
        val call = client.newCall(Request.Builder().url(server.url("/")).build())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top