Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 156 for Post (0.13 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocketFactory.kt

        return configureSocket(sslSocket)
      }
    
      @Throws(IOException::class)
      override fun createSocket(
        host: InetAddress,
        port: Int,
      ): SSLSocket {
        val sslSocket = delegate.createSocket(host, port) as SSLSocket
        return configureSocket(sslSocket)
      }
    
      @Throws(IOException::class)
      override fun createSocket(
        host: InetAddress,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSocketFactory.kt

      override fun createSocket(
        host: String,
        port: Int,
      ): Socket {
        val socket = delegate.createSocket(host, port)
        return configureSocket(socket)
      }
    
      @Throws(IOException::class)
      override fun createSocket(
        host: String,
        port: Int,
        localAddress: InetAddress,
        localPort: Int,
      ): Socket {
        val socket = delegate.createSocket(host, port, localAddress, localPort)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CookiesTest.kt

        val cookieA = HttpCookie("a", "android")
        cookieA.domain = serverUrl.host
        cookieA.path = "/"
        cookieManager.cookieStore.add(serverUrl.toUri(), cookieA)
        val cookieB = HttpCookie("b", "banana")
        cookieB.domain = serverUrl.host
        cookieB.path = "/"
        cookieManager.cookieStore.add(serverUrl.toUri(), cookieB)
        client =
          client.newBuilder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/WebPlatformUrlTest.kt

            else -> ""
          }
        val effectiveHost =
          when {
            url.host.contains(":") -> "[" + url.host + "]"
            else -> url.host
          }
        assertThat(url.scheme, "scheme").isEqualTo(testData.scheme)
        assertThat(effectiveHost, "host").isEqualTo(testData.host)
        assertThat(effectivePort, "port").isEqualTo(testData.port)
        assertThat(url.encodedPath, "path").isEqualTo(testData.path)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  5. mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt

        assertThat(request.requestUrl.toString()).isEqualTo("http://127.0.0.1/")
      }
    
      @Test fun testHostname() {
        val headers = headersOf("Host", "host-from-header.com")
        val socket =
          FakeSocket(
            localAddress =
              InetAddress.getByAddress(
                "host-from-address.com",
                byteArrayOf(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),
              ),
            localPort = 80,
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/ChannelSocketFactory.kt

        return SocketChannel.open().socket()
      }
    
      override fun createSocket(
        host: String,
        port: Int,
      ): Socket = TODO("Not yet implemented")
    
      override fun createSocket(
        host: String,
        port: Int,
        localHost: InetAddress,
        localPort: Int,
      ): Socket = TODO("Not yet implemented")
    
      override fun createSocket(
        host: InetAddress,
        port: Int,
      ): Socket = TODO("Not yet implemented")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

            .addSubjectAlternativeName("intermediate_ca.com")
            .build()
        serverCert =
          HeldCertificate.Builder()
            .signedBy(serverIntermediateCa)
            .serialNumber(3L)
            .commonName("Local Host")
            .addSubjectAlternativeName(server.hostName)
            .build()
        clientRootCa =
          HeldCertificate.Builder()
            .serialNumber(1L)
            .certificateAuthority(1)
            .commonName("root")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/InsecureAndroidTrustManager.kt

        chain: Array<out X509Certificate>,
        authType: String,
        host: String,
      ): List<Certificate> {
        if (host in insecureHosts) return listOf()
        try {
          val method =
            checkServerTrustedMethod
              ?: throw CertificateException("Failed to call checkServerTrusted")
          return method.invoke(delegate, chain, authType, host) as List<Certificate>
        } catch (e: InvocationTargetException) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/InsecureForHostTest.kt

      fun setup(server: MockWebServer) {
        this.server = server
    
        // BCX509ExtendedTrustManager not supported in TlsUtil.newTrustManager
        platform.assumeNotBouncyCastle()
      }
    
      @Test fun `untrusted host in insecureHosts connects successfully`() {
        val serverCertificates = platform.localhostHandshakeCertificates()
        server.useHttps(serverCertificates.sslSocketFactory())
        server.enqueue(MockResponse())
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  10. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt

        val encoded = encodeQuery("google.com", TYPE_A)
        assertThat(encoded).isEqualTo("AAABAAABAAAAAAAABmdvb2dsZQNjb20AAAEAAQ")
      }
    
      private fun encodeQuery(
        host: String,
        type: Int,
      ): String {
        return DnsRecordCodec.encodeQuery(host, type).base64Url().replace("=", "")
      }
    
      @Test
      fun testGoogleDotComEncodingWithIPv6() {
        val encoded = encodeQuery("google.com", TYPE_AAAA)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (0)
Back to top