Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 149 for Lesage (0.18 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidCertificateChainCleaner.kt

        try {
          return x509TrustManagerExtensions.checkServerTrusted(certificates, "RSA", hostname)
        } catch (ce: CertificateException) {
          throw SSLPeerUnverifiedException(ce.message).apply { initCause(ce) }
        }
      }
    
      override fun equals(other: Any?): Boolean =
        other is AndroidCertificateChainCleaner &&
          other.trustManager === this.trustManager
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt

                  "74c01b5adb12c100000e10000003840012750000000e10"
              ).decodeHex(),
          )
        }.also { expected ->
          assertThat(expected.message).isEqualTo("sdflkhfsdlkjdf.ee: NXDOMAIN")
        }
      }
    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)
  3. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        val refusedConnection = url.openConnection() as HttpURLConnection
        assertFailsWith<ConnectException> {
          refusedConnection.getResponseCode()
        }.also { expected ->
          assertThat(expected.message!!).contains("refused")
        }
      }
    
      @Test
      fun http100Continue() {
        server.enqueue(MockResponse().setBody("response"))
        val url = server.url("/").toUrl()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  4. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

          when (ioe.cause) {
            is IllegalArgumentException -> {
              assertEquals("Android internal error", ioe.message)
            }
            is CertificateException -> {
              assertTrue(ioe.cause?.cause is IllegalArgumentException)
              assertEquals(true, ioe.cause?.cause?.message?.startsWith("Invalid input to toASCII"))
            }
            else -> throw ioe
          }
        }
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  5. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

              }
              else -> throw AssertionError("unsupported hashAlgorithm: ${pin.hashAlgorithm}")
            }
          }
        }
    
        // If we couldn't find a matching pin, format a nice exception.
        val message =
          buildString {
            append("Certificate pinning failure!")
            append("\n  Peer certificate chain:")
            for (element in peerCertificates) {
              append("\n    ")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        // https://android-review.googlesource.com/#/c/271775/
        try {
          source = rawSocket.source().buffer()
          sink = rawSocket.sink().buffer()
        } catch (npe: NullPointerException) {
          if (npe.message == NPE_THROW_WITH_NULL) {
            throw IOException(npe)
          }
        }
      }
    
      /**
       * Does all the work to build an HTTPS connection over a proxy tunnel. The catch here is that a
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

      if (headersContentLength() != -1L ||
        "chunked".equals(header("Transfer-Encoding"), ignoreCase = true)
      ) {
        return true
      }
    
      return false
    }
    
    @Deprecated(
      message = "No longer supported",
      level = DeprecationLevel.ERROR,
      replaceWith = ReplaceWith(expression = "response.promisesBody()"),
    )
    fun hasBody(response: Response): Boolean {
      return response.promisesBody()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

        source1.close() // Not exhausted!
        assertThat(relay1.isClosed).isTrue()
        assertFailsWith<IOException> {
          read(file)
        }.also { expected ->
          assertThat(expected.message).isEqualTo("unreadable cache file")
        }
        assertFile(Relay.PREFIX_DIRTY, -1L, -1, null, null)
      }
    
      @Test
      fun redundantCallsToCloseAreIgnored() {
        val upstream = Buffer()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

    ) {
      @JvmName("-deprecated_certificate")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "certificate"),
        level = DeprecationLevel.ERROR,
      )
      fun certificate(): X509Certificate = certificate
    
      @JvmName("-deprecated_keyPair")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "keyPair"),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
  10. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

      val code: Int
        get() {
          val statusParts = status.split(' ', limit = 3)
          require(statusParts.size >= 2) { "Unexpected status: $status" }
          return statusParts[1].toInt()
        }
    
      val message: String
        get() {
          val statusParts = status.split(' ', limit = 3)
          require(statusParts.size >= 2) { "Unexpected status: $status" }
          return statusParts[2]
        }
    
      val headers: Headers
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 13.3K bytes
    - Viewed (1)
Back to top