Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 148 for host (0.2 sec)

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

            val host = url.host
            return host.substring(1, host.length - 5).lowercase()
          }
    
          override fun canonicalize(s: String): String = s.lowercase()
        },
    
        PATH {
          override fun urlString(value: String): String = "http://example.com/a${value}z/"
    
          override fun encodedValue(url: HttpUrl): String {
            val path = url.encodedPath
            return path.substring(2, path.length - 2)
          }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

      fun encodeQuery(
        host: String,
        type: Int,
      ): ByteString =
        Buffer().apply {
          writeShort(0) // query id
          writeShort(256) // flags with recursion
          writeShort(1) // question count
          writeShort(0) // answerCount
          writeShort(0) // authorityResourceCount
          writeShort(0) // additional
    
          val nameBuf = Buffer()
          val labels = host.split('.').dropLastWhile { it.isEmpty() }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticator.kt

                challenge.scheme,
                url.toUrl(),
                Authenticator.RequestorType.PROXY,
              )
            } else {
              Authenticator.requestPasswordAuthentication(
                url.host,
                proxy.connectToInetAddress(url, dns),
                url.port,
                url.scheme,
                challenge.realm,
                challenge.scheme,
                url.toUrl(),
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/AutobahnTester.kt

    class AutobahnTester {
      val client = OkHttpClient()
    
      private fun newWebSocket(
        path: String,
        listener: WebSocketListener,
      ): WebSocket {
        val request =
          Request.Builder()
            .url(HOST + path)
            .build()
        return client.newWebSocket(request, listener)
      }
    
      fun run() {
        try {
          val count = getTestCount()
          println("Test count: $count")
          for (number in 1..count) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  5. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/BootstrapDns.kt

    import java.net.UnknownHostException
    import okhttp3.Dns
    
    /**
     * Internal Bootstrap DNS implementation for handling initial connection to DNS over HTTPS server.
     *
     * Returns hardcoded results for the known host.
     */
    internal class BootstrapDns(
      private val dnsHostname: String,
      private val dnsServers: List<InetAddress>,
    ) : Dns {
      @Throws(UnknownHostException::class)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (2)
  6. docs/features/https.md

    HTTPS
    =====
    
    OkHttp attempts to balance two competing concerns:
    
     * **Connectivity** to as many hosts as possible. That includes advanced hosts that run the latest versions of [boringssl](https://boringssl.googlesource.com/boringssl/) and less out of date hosts running older versions of [OpenSSL](https://www.openssl.org/).
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Dec 24 00:16:30 GMT 2022
    - 10.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RetryTlsHandshake.kt

        e is ProtocolException -> false
    
        // If there was an interruption or timeout (SocketTimeoutException), don't recover.
        // For the socket connect timeout case we do not try the same host with a different
        // ConnectionSpec: we assume it is unreachable.
        e is InterruptedIOException -> false
    
        // If the problem was a CertificateException from the X509TrustManager, do not retry.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Jan 07 16:05:34 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Address.kt

       */
      @get:JvmName("url")
      val url: HttpUrl =
        HttpUrl.Builder()
          .scheme(if (sslSocketFactory != null) "https" else "http")
          .host(uriHost)
          .port(uriPort)
          .build()
    
      /**
       * The protocols the client supports. This method always returns a non-null list that
       * contains minimally [Protocol.HTTP_1_1].
       */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/WebPlatformToAsciiTest.kt

          throw failures.first()
        }
      }
    
      private fun testToAscii(
        input: String,
        output: String?,
        comment: String?,
      ) {
        val url = "https://$input/".toHttpUrlOrNull()
        assertThat(url?.host, name = comment ?: input).isEqualTo(output)
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        // Adapt the request and response into our Request and Response domain model.
        val scheme = if (request.handshake != null) "https" else "http"
        val authority = request.headers["Host"] // Has host and port.
        val fancyRequest =
          Request.Builder()
            .url("$scheme://$authority/")
            .headers(request.headers)
            .build()
        val fancyResponse =
          Response.Builder()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
Back to top