Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 71 for enabled (0.17 sec)

  1. docs/features/interceptors.md

    If you're in a tricky situation and prepared to deal with the consequences, rewriting response headers is a powerful way to work around problems. For example, you can fix a server's misconfigured `Cache-Control` response header to enable better response caching:
    
    ```java
    /** Dangerous interceptor that rewrites the server's cache-control header. */
    private static final Interceptor REWRITE_CACHE_CONTROL_INTERCEPTOR = new Interceptor() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 8.1K bytes
    - Viewed (0)
  2. mockwebserver-junit5/build.gradle.kts

    }
    
    tasks {
      jar {
        manifest {
          attributes("Automatic-Module-Name" to "mockwebserver3.junit5")
        }
      }
      test {
        useJUnitPlatform()
        systemProperty("junit.jupiter.extensions.autodetection.enabled", "true")
      }
    }
    
    dependencies {
      api(projects.mockwebserver3)
      api(libs.junit.jupiter.api)
      compileOnly(libs.animalsniffer.annotations)
    
      testRuntimeOnly(libs.junit.jupiter.engine)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 04 05:32:07 GMT 2024
    - 833 bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt

          val heldCertificate = heldCertificate
          if (heldCertificate != null && heldCertificate.keyPair.private.format == null) {
            throw KeyStoreException("unable to support unencodable private key")
          }
    
          val keyManager = newKeyManager(null, heldCertificate, *(intermediates ?: emptyArray()))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.5K bytes
    - Viewed (1)
  4. CHANGELOG.md

        Indication) attribute from the TLS handshake.
    
     *  Upgrade: [Kotlin 1.9.21][kotlin_1_9_21].
    
     *  Upgrade: [Okio 3.7.0][okio_3_7_0].
    
    
    ## Version 5.0.0-alpha.11
    
    _2022-12-24_
    
     *  New: Enable fast fallback by default. It's our implementation of Happy Eyeballs,
        [RFC 8305][rfc_8305]. Disable with `OkHttpClient.Builder.fastFallback(false)`.
     *  Fix: Don't log response bodies for server-sent events.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_2x.md

        header. This means OkHttp's cache shouldn't be used on middleboxes that sit
        between user agents and the origin server.
    
     *  **TLS configuration updated.** OkHttp now explicitly enables TLSv1.2,
        TLSv1.1 and TLSv1.0 where they are supported. It will continue to perform
        only one fallback, to SSLv3. Applications can now configure this with the
        `ConnectionSpec` class.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/platform/ConscryptPlatform.kt

        sslSocket: SSLSocket,
        hostname: String?,
        protocols: List<@JvmSuppressWildcards Protocol>,
      ) {
        if (Conscrypt.isConscrypt(sslSocket)) {
          // Enable session tickets.
          Conscrypt.setUseSessionTickets(sslSocket, true)
    
          // Enable ALPN.
          val names = alpnProtocolNames(protocols)
          Conscrypt.setApplicationProtocols(sslSocket, names.toTypedArray())
        } else {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  7. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientTest.kt

        httpClient.close()
      }
    
      @Test fun get() {
        val request = HttpGet("https://google.com/robots.txt")
    
        httpClient.execute(request).use { response ->
          assertEquals(200, response.code)
          // TODO enable ALPN later
          assertEquals(HttpVersion.HTTP_1_1, response.version)
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/JsseDebugLogging.kt

          else -> println(message)
        }
      }
    
      fun enableJsseDebugLogging(debugHandler: (JsseDebugMessage) -> Unit = this::quietDebug): Closeable {
        System.setProperty("javax.net.debug", "")
        return OkHttpDebugLogging.enable(
          "javax.net.ssl",
          object : Handler() {
            override fun publish(record: LogRecord) {
              val param = record.parameters?.firstOrNull() as? String
    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)
  9. android-test/build.gradle.kts

          "runnerBuilder" to "de.mannodermaus.junit5.AndroidJUnit5Builder",
          "notPackage" to "org.bouncycastle",
          "configurationParameters" to "junit.jupiter.extensions.autodetection.enabled=true"
        )
      }
    
      if (androidBuild) {
        sourceSets["androidTest"].java.srcDirs(
          "../okhttp-brotli/src/test/java",
          "../okhttp-dnsoverhttps/src/test/java",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. okhttp/build.gradle.kts

           the generated index.xml, are outputs, not inputs. We can be sure of
           this because they are deleted in the @BeforeEach method of the
           OsgiTest test class.
    
           - To enable the benefit of incremental builds, we can ask Gradle
           to ignore these two files when considering whether the classpath
           has changed. That is the purpose of this normalization block.
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 04 05:32:07 GMT 2024
    - 5.6K bytes
    - Viewed (0)
Back to top