Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 82 for Schick (0.14 sec)

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

      fun successfulCheckSha1Pin() {
        val certificatePinner =
          CertificatePinner.Builder()
            .add("example.com", "sha1/" + certA1.certificate.sha1Hash().base64())
            .build()
    
        certificatePinner.check("example.com", listOf(certA1.certificate))
      }
    
      @Test fun successfulFindMatchingPins() {
        val certificatePinner =
          CertificatePinner.Builder()
            .add("first.com", certA1Sha256Pin, certB1Sha256Pin)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

        // Check the user response. It has the application's original request.
        cacheMiss.assertCode(200)
          .assertBody("B")
          .assertHeader("Donut", "b")
          .assertRequestUrl(server.url("/"))
          .assertSentRequestAtMillis(request2SentAt, request2ReceivedAt)
          .assertReceivedResponseAtMillis(request2SentAt, request2ReceivedAt)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Response.kt

          }
    
        internal fun initExchange(exchange: Exchange) {
          this.exchange = exchange
          this.trailersFn = { exchange.trailers() }
        }
    
        open fun build(): Response {
          check(code >= 0) { "code < 0: $code" }
          return Response(
            checkNotNull(request) { "request == null" },
            checkNotNull(protocol) { "protocol == null" },
            checkNotNull(message) { "message == null" },
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

        dns[uriHost] = dns.allocate(numberOfAddresses)
    
        // Extract the regular sequence of routes from selector.
        val selection1 = routeSelector.next()
        val regularRoutes = selection1.routes
    
        // Check that we do indeed have more than one route.
        assertThat(regularRoutes.size).isEqualTo(numberOfAddresses)
        // Add first regular route as failed.
        routeDatabase.failed(regularRoutes[0])
        // Reset selector
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  5. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        val given_cipher_suites: List<String>?,
      )
    
      @Test
      @Disabled
      fun testSSLFeatures() {
        assumeNetwork()
    
        val request = Request.Builder().url("https://www.howsmyssl.com/a/check").build()
    
        val response = client.newCall(request).execute()
    
        val results =
          response.use {
            moshi.adapter(HowsMySslResults::class.java).fromJson(response.body.string())!!
          }
    
    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)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

       *
       * [rfc_8017]: https://tools.ietf.org/html/rfc8017
       * [rfc_7468]: https://tools.ietf.org/html/rfc7468
       */
      fun privateKeyPkcs1Pem(): String {
        check(keyPair.private is RSAPrivateKey) { "PKCS1 only supports RSA keys" }
        return buildString {
          append("-----BEGIN RSA PRIVATE KEY-----\n")
          encodeBase64Lines(pkcs1Bytes())
    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)
  7. okhttp/src/main/kotlin/okhttp3/Cache.kt

            if (!hasNext()) throw NoSuchElementException()
            val result = nextUrl!!
            nextUrl = null
            canRemove = true
            return result
          }
    
          override fun remove() {
            check(canRemove) { "remove() before next()" }
            delegate.remove()
          }
        }
      }
    
      @Synchronized fun writeAbortCount(): Int = writeAbortCount
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http/RealInterceptorChain.kt

      @Throws(IOException::class)
      override fun proceed(request: Request): Response {
        check(index < interceptors.size)
    
        calls++
    
        if (exchange != null) {
          check(exchange.finder.routePlanner.sameHostAndPort(request.url)) {
            "network interceptor ${interceptors[index - 1]} must retain the same host and port"
          }
          check(calls == 1) {
    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)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

            }
    
            override fun nanoTime() = nanoTime
    
            override fun coordinatorNotify(taskRunner: TaskRunner) {
              taskRunner.assertThreadHoldsLock()
              check(waitingCoordinatorTask != null)
    
              // Queue a task to resume the waiting coordinator.
              serialTaskQueue +=
                object : SerialTask {
                  override fun start() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

      duration: Long,
      unit: TimeUnit,
    ): Int {
      check(duration >= 0L) { "$name < 0" }
      val millis = unit.toMillis(duration)
      require(millis <= Integer.MAX_VALUE) { "$name too large" }
      require(millis != 0L || duration <= 0L) { "$name too small" }
      return millis.toInt()
    }
    
    internal fun checkDuration(
      name: String,
      duration: Duration,
    ): Int {
      check(!duration.isNegative()) { "$name < 0" }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top