Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for shape (0.14 sec)

  1. docs/changelogs/changelog_4x.md

        this because it only occurs if you have proxy configured and you share a connection pool among
        multiple `OkHttpClient` instances.
    
        This particularly-subtle bug was caused by us assigning each `OkHttpClient` instance its own
        `NullProxySelector` when an explicit proxy is configured. But we don't share connections when
        the proxy selectors are different. Ugh!
    
    
    ## Version 4.2.0
    
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

       *
       * Once true this is always true. Guarded by this.
       */
      var noNewExchanges = false
    
      /**
       * If true, this connection may not be used for coalesced requests. These are requests that could
       * share the same connection without sharing the same hostname.
       */
      private var noCoalescedConnections = false
    
      /**
       * The number of times there was a problem establishing a stream that could be due to route
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

        @JvmField val PREFIX_DIRTY = "OkHttp DIRTY :(\n".encodeUtf8()
        private const val FILE_HEADER_SIZE = 32L
    
        /**
         * Creates a new relay that reads a live stream from [upstream], using [file] to share that data
         * with other sources.
         *
         * **Warning:** callers to this method must immediately call [newSource] to create a source and
         * close that when they're done. Otherwise a handle to [file] will be leaked.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

     *
     * The task runner is also responsible for releasing held threads when the library is unloaded.
     * This is for the benefit of container environments that implement code unloading.
     *
     * Most applications should share a process-wide [TaskRunner] and use queues for per-client work.
     */
    class TaskRunner(
      val backend: Backend,
      internal val logger: Logger = TaskRunner.logger,
    ) {
      val lock: ReentrantLock = ReentrantLock()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

            }
          }
        }
      }
    
      /**
       * Object class to adapter type. This approach limits us to one adapter per Kotlin class, which
       * might be too few for values like UTF_STRING and OBJECT_IDENTIFIER that share a Kotlin class but
       * have very different ASN.1 interpretations.
       */
      private val defaultAnyChoices =
        listOf(
          Boolean::class to BOOLEAN,
          BigInteger::class to INTEGER_AS_BIG_INTEGER,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/RequestTest.kt

        assertThat(request.tag(String::class.java)).isSameAs(stringTag)
        assertThat(request.tag(Long::class.javaObjectType)).isSameAs(longTag)
      }
    
      /** Confirm that we don't accidentally share the backing map between objects. */
      @Test
      fun tagsAreImmutable() {
        val builder =
          Request.Builder()
            .url("https://square.com")
        val requestA = builder.tag(String::class.java, "a").build()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Cookie.kt

       */
      @get:JvmName("hostOnly") val hostOnly: Boolean,
      /**
       * Returns a string describing whether this cookie is sent for cross-site calls.
       *
       * Two URLs are on the same site if they share a [top private domain][HttpUrl.topPrivateDomain].
       * Otherwise, they are cross-site URLs.
       *
       * When a URL is requested, it may be in the context of another URL.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

        assertThat(a.dispatcher).isNotNull()
        assertThat(a.connectionPool).isNotNull()
        assertThat(a.sslSocketFactory).isNotNull()
        assertThat(a.x509TrustManager).isNotNull()
    
        // Multiple clients share the instances.
        val b = client.newBuilder().build()
        assertThat(b.dispatcher).isSameAs(a.dispatcher)
        assertThat(b.connectionPool).isSameAs(a.connectionPool)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  9. docs/features/https.md

    OkHttpClient client = new OkHttpClient.Builder()
        .connectionSpecs(Collections.singletonList(spec))
        .build();
    ```
    
    ### Debugging TLS Handshake Failures
    
    The TLS handshake requires clients and servers to share a common TLS version and cipher suite. This
    depends on the JVM or Android version, OkHttp version, and web server configuration. If there is no
    common cipher suite and TLS version, your call will fail like this:
    
    ```
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 24 00:16:30 GMT 2022
    - 10.5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

            .signedBy(pinnedRoot)
            .build()
        val attackerSwitch =
          HeldCertificate.Builder()
            .serialNumber(5L)
            .keyPair(attackerIntermediate.keyPair) // share keys between compromised CA and leaf!
            .commonName("attacker")
            .addSubjectAlternativeName("attacker.com")
            .signedBy(pinnedIntermediate)
            .build()
        val phonyVictim =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.8K bytes
    - Viewed (0)
Back to top