Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 74 for Chen (0.12 sec)

  1. okhttp/src/main/kotlin/okhttp3/Response.kt

       * cache then this is the timestamp of the original request.
       */
      @get:JvmName("sentRequestAtMillis") val sentRequestAtMillis: Long,
      /**
       * Returns a [timestamp][System.currentTimeMillis] taken immediately after OkHttp
       * received this response's headers from the network. If this response is being served from the
       * cache then this is the timestamp of the original response.
       */
    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)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

          headersDelayNanos = unit.toNanos(delay)
        }
    
        /**
         * When [protocols][MockWebServer.protocols] include [HTTP_2][okhttp3.Protocol], this attaches a
         * pushed stream to this response.
         */
        fun addPush(promise: PushPromise) =
          apply {
            this.pushPromises += promise
          }
    
        /**
         * When [protocols][MockWebServer.protocols] include [HTTP_2][okhttp3.Protocol], this pushes
    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)
  3. okhttp/src/main/kotlin/okhttp3/Cache.kt

            .build()
        }
    
        companion object {
          /** Synthetic response header: the local time when the request was sent. */
          private val SENT_MILLIS = "${Platform.get().getPrefix()}-Sent-Millis"
    
          /** Synthetic response header: the local time when the response was received. */
          private val RECEIVED_MILLIS = "${Platform.get().getPrefix()}-Received-Millis"
        }
      }
    
    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)
  4. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

     * [static certificates][static_certificates].
     *
     * ## Setting up Certificate Pinning
     *
     * The easiest way to pin a host is turn on pinning with a broken configuration and read the
     * expected configuration when the connection fails. Be sure to do this on a trusted network, and
     * without man-in-the-middle tools like [Charles][charles] or [Fiddler][fiddler].
     *
    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)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

         * Sets the certificate to be valid in ```[notBefore..notAfter]```. Both endpoints are specified
         * in the format of [System.currentTimeMillis]. Specify -1L for both values to use the default
         * interval, 24 hours starting when the certificate is created.
         */
        fun validityInterval(
          notBefore: Long,
          notAfter: Long,
        ) = apply {
          require(notBefore <= notAfter && notBefore == -1L == (notAfter == -1L)) {
    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)
  6. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

        server.requireClientAuth()
        val call = client.newCall(Request.Builder().url(server.url("/")).build())
        assertFailsWith<IOException> {
          call.execute()
        }.also { expected ->
          when (expected) {
            is SSLHandshakeException -> {
              // JDK 11+
            }
            is SSLException -> {
              // javax.net.ssl.SSLException: readRecord
            }
            is SocketException -> {
    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)
  7. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

            assertEquals(200, response.code)
            // see https://github.com/google/conscrypt/blob/b9463b2f74df42d85c73715a5f19e005dfb7b802/android/src/main/java/org/conscrypt/Platform.java#L613
            when {
              Build.VERSION.SDK_INT >= 24 -> {
                // Conscrypt 2.5+ defaults to SSLEngine-based SSLSocket
                assertEquals("org.conscrypt.Java8EngineSocket", socketClass)
              }
    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)
  8. okhttp/src/main/kotlin/okhttp3/Headers.kt

         * or cache.
         */
        internal fun addLenient(line: String) =
          apply {
            val index = line.indexOf(':', 1)
            when {
              index != -1 -> {
                addLenient(line.substring(0, index), line.substring(index + 1))
              }
              line[0] == ':' -> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

        val handshake = makeRequest(client)
    
        assertThat(handshake.cipherSuite).isIn(*expectedModernTls13CipherSuites.toTypedArray())
    
        // TODO: filter down to TLSv1.3 when only activated.
        // Probably something like
        // TLS_AES_128_GCM_SHA256
        // TLS_AES_256_GCM_SHA384
        // TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
        // TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/CipherSuite.kt

     *
     * **Not all cipher suites are supported on all platforms.** As newer cipher suites are created (for
     * stronger privacy, better performance, etc.) they will be adopted by the platform and then exposed
     * here. Cipher suites that are not available on either Android (through API level 24) or Java
     * (through JDK 9) are omitted for brevity.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 39.9K bytes
    - Viewed (1)
Back to top