Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 145 for platforms (0.19 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

      companion object {
        @Volatile private var platform = findPlatform()
    
        const val INFO = 4
        const val WARN = 5
    
        private val logger = Logger.getLogger(OkHttpClient::class.java.name)
    
        @JvmStatic
        fun get(): Platform = platform
    
        fun resetForTests(platform: Platform = findPlatform()) {
          this.platform = platform
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
  2. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

      }
    
      @Test
      fun effectiveOrderInRestrictedJdk11() {
        platform.assumeJdkVersion(11)
        // We are avoiding making guarantees on ordering of secondary Platforms.
        platform.assumeNotConscrypt()
        platform.assumeNotBouncyCastle()
    
        val platform = Platform.get()
        val platformDefaultCipherSuites =
          platform.newSslSocketFactory(platform.platformTrustManager()).defaultCipherSuites
        val cipherSuites =
    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)
  3. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        assertThat(parse("http://host/\ufffd").encodedPath).isEqualTo("/%EF%BF%BD")
      }
    
      @Test
      fun usernameCharacters() {
        if (!isJvm) return // TODO: this test is broken on non-JVM platforms.
        UrlComponentEncodingTester.newInstance()
          .override(
            Encoding.PERCENT,
            '['.code,
            ']'.code,
            '{'.code,
            '}'.code,
            '|'.code,
            '^'.code,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  4. README.md

    with HTTPS clients is an important defense against potential security problems. [We
    track][tls_history] the dynamic TLS ecosystem and adjust OkHttp to improve connectivity and
    security.
    
    OkHttp uses your platform's built-in TLS implementation. On Java platforms OkHttp also supports
    [Conscrypt][conscrypt], which integrates [BoringSSL](https://github.com/google/boringssl) with Java. OkHttp will use Conscrypt if it is
    the first security provider:
    
    ```java
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/FallbackTestClientSocketFactory.kt

     * that will not accept the [TLS_FALLBACK_SCSV] cipher, thus bypassing server-side fallback
     * checks on platforms that support it. Unfortunately this wrapping will disable any
     * reflection-based calls to SSLSocket from Platform.
     */
    class FallbackTestClientSocketFactory(
      delegate: SSLSocketFactory,
    ) : DelegatingSSLSocketFactory(delegate) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  6. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

      }
    
      @AfterEach fun tearDown() {
        executorService.shutdown()
        serverSocket?.closeQuietly()
      }
    
      @Test fun clientAndServer() {
        platform.assumeNotConscrypt()
        platform.assumeNotBouncyCastle()
    
        val clientRoot =
          HeldCertificate.Builder()
            .certificateAuthority(1)
            .build()
        val clientIntermediate =
          HeldCertificate.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_4x.md

        detecting the TLS capabilities of the host platform.
    
     *  Fix: Don't crash in `HttpUrl.topPrivateDomain()` when the hostname is malformed.
    
     *  Fix: Don't attempt Brotli decompression if the response body is empty.
    
    
    ## Version 4.7.2
    
    _2020-05-20_
    
     *  Fix: Don't crash inspecting whether the host platform is JVM or Android. With 4.7.0 and 4.7.1 we
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http/ThreadInterruptTest.kt

    @Tag("Slowish")
    class ThreadInterruptTest {
      @RegisterExtension
      val platform = PlatformRule()
    
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
      private lateinit var server: MockWebServer
      private lateinit var client: OkHttpClient
    
      @BeforeEach
      fun setUp() {
        // Sockets on some platforms can have large buffers that mean writes do not block when
    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)
  9. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

    import okhttp3.internal.addHeaderLenient
    import okhttp3.internal.authenticator.JavaNetAuthenticator
    import okhttp3.internal.http.HTTP_PERM_REDIRECT
    import okhttp3.internal.http.HTTP_TEMP_REDIRECT
    import okhttp3.internal.platform.Platform.Companion.get
    import okhttp3.java.net.cookiejar.JavaNetCookieJar
    import okhttp3.testing.Flaky
    import okhttp3.testing.PlatformRule
    import okio.Buffer
    import okio.BufferedSink
    import okio.GzipSink
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

        /**
         * Returns a new response body that transmits this string. If [contentType] is non-null and
         * has a charset other than utf-8 the behaviour differs by platform.
         *
         * On the JVM the encoding will be used instead of utf-8.
         *
         * On non JVM platforms, this method will fail for encodings other than utf-8.
         */
        @JvmStatic
        @JvmName("create")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
Back to top