Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 27 of 27 for Want (0.14 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

       * most common configuration.
       */
      fun noClientAuth() {
        this.clientAuth = CLIENT_AUTH_NONE
      }
    
      /**
       * Configure the server to [want client auth][SSLSocket.setWantClientAuth]. If the
       * client presents a certificate that is [trusted][TrustManager] the handshake will
       * proceed normally. The connection will also proceed normally if the client presents no
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

          // the journal rebuild failed, the journal writer will not be active, meaning we will not be
          // able to record the edit, causing file leaks. In both cases, we want to retry the clean up
          // so we can get out of this state!
          cleanupQueue.schedule(cleanupTask)
          return null
        }
    
        // Flush the journal before creating files to prevent file leaks.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

          // 408's are a bit of an outlier because we may repeat the request if we encounter this
          // response code. In this scenario, there are 2 responses: the initial 408 and then the 200
          // because of the retry. We just want to ensure the initial 408 isn't cached.
          expectedResponseCode = 200
          server.enqueue(
            MockResponse.Builder()
              .setHeader("Cache-Control", "no-store")
              .body("FGHIJ")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/platform/AndroidPlatform.kt

      override fun buildTrustRootIndex(trustManager: X509TrustManager): TrustRootIndex =
        try {
          // From org.conscrypt.TrustManagerImpl, we want the method with this signature:
          // private TrustAnchor findTrustAnchorByIssuerAndSignature(X509Certificate lastCert);
          val method =
            trustManager.javaClass.getDeclaredMethod(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  5. docs/recipes.md

                .build()
          }
        ```
    
        To avoid making many retries when authentication isn't working, you can return null to give up. For example, you may want to skip the retry when these exact credentials have already been attempted:
    
        ```kotlin
        if (credential == response.request.header("Authorization")) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Feb 18 08:52:22 GMT 2022
    - 40.2K bytes
    - Viewed (1)
  6. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

        }.also { expected ->
          assertThat(expected.message).isEqualTo("PROTOCOL_ERROR: TYPE_DATA streamId == 0")
        }
      }
    
      /** We do not send SETTINGS_COMPRESS_DATA = 1, nor want to. Let's make sure we error.  */
      @Test fun compressedDataFrameWhenSettingDisabled() {
        val expectedData = ByteArray(Http2.INITIAL_MAX_FRAME_SIZE)
        Arrays.fill(expectedData, 2.toByte())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  7. native-image-tests/build.gradle.kts

    import org.apache.tools.ant.taskdefs.condition.Os
    
    plugins {
      id("com.palantir.graal")
      kotlin("jvm")
    }
    
    dependencies {
      implementation(libs.junit.jupiter.api)
      implementation(libs.junit.jupiter.engine)
      implementation(libs.junit.platform.console)
      implementation(libs.squareup.okio.fakefilesystem)
    
      implementation(projects.okhttp)
      implementation(projects.okhttpBrotli)
      implementation(projects.okhttpDnsoverhttps)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 06 05:31:00 GMT 2024
    - 1.6K bytes
    - Viewed (0)
Back to top