Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 83 for Implementation (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

      /** The maximum size of bytes that may be sent in a single call to [data]. */
      fun maxDataLength(): Int = maxFrameSize
    
      /**
       * `source.length` may be longer than the max length of the variant's data frame. Implementations
       * must send multiple frames as necessary.
       *
       * @param source the buffer to draw bytes from. May be null if byteCount is 0.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_3x.md

        Kotlin-friendly Okio 2.x but OkHttp works fine with that series.
    
        ```kotlin
        implementation("org.bouncycastle:bcprov-jdk15on:1.60")
        implementation("org.conscrypt:conscrypt-openjdk-uber:1.4.0")
        implementation("com.squareup.okio:okio:1.15.0")
        ```
    
     *  Fix: Handle dispatcher executor shutdowns gracefully. When there aren't any threads to carry a
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  3. README.md

    ```kotlin
        dependencies {
           // define a BOM and its version
           implementation(platform("com.squareup.okhttp3:okhttp-bom:4.12.0"))
    
           // define any required OkHttp artifacts without version
           implementation("com.squareup.okhttp3:okhttp")
           implementation("com.squareup.okhttp3:logging-interceptor")
        }
    ```
    
    MockWebServer
    -------------
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

          get() {
            val preferredProvider = Security.getProviders()[0].name
            return "BC" == preferredProvider
          }
    
        /** Attempt to match the host runtime to a capable Platform implementation. */
        private fun findPlatform(): Platform =
          if (isAndroid) {
            findAndroidPlatform()
          } else {
            findJvmPlatform()
          }
    
        private fun findAndroidPlatform(): Platform {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. docs/recipes.md

    ### Handling authentication ([.kt][AuthenticateKotlin], [.java][AuthenticateJava])
    
    OkHttp can automatically retry unauthenticated requests. When a response is `401 Not Authorized`, an `Authenticator` is asked to supply credentials. Implementations should build a new request that includes the missing credentials. If no credentials are available, return null to skip the retry.
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Fri Feb 18 08:52:22 UTC 2022
    - 40.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

        fun isCacheable(
          response: Response,
          request: Request,
        ): Boolean {
          // Always go to network for uncacheable response codes (RFC 7231 section 6.1), This
          // implementation doesn't support caching partial content.
          when (response.code) {
            HTTP_OK,
            HTTP_NOT_AUTHORITATIVE,
            HTTP_NO_CONTENT,
            HTTP_MULT_CHOICE,
            HTTP_MOVED_PERM,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 12K bytes
    - Viewed (0)
  7. docs/changelogs/upgrading_to_okhttp_4.md

    Upgrading to OkHttp 4
    =====================
    
    OkHttp 4.x upgrades our implementation language from Java to Kotlin and keeps everything else the
    same. We’ve chosen Kotlin because it gives us powerful new capabilities while integrating closely
    with Java.
    
    We spent a lot of time and energy on retaining strict compatibility with OkHttp 3.x. We’re even
    keeping the package name the same: `okhttp3`!
    
    There are three kinds of compatibility we’re tracking:
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

       *   attackerCa
       *     -> attackerIntermediate
       *         -> phonyVictim
       * ```
       *
       * Some implementations fail the TLS handshake when they see the long chain, and don't give
       * CertificatePinner the opportunity to produce a different chain from their own. This includes
       * the OpenJDK 11 TLS implementation, which itself fails the handshake when it encounters a non-CA
       * certificate.
       */
      @Test
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  9. okhttp-tls/README.md

    By default certificates use fast and secure 256-bit ECDSA keys. For interoperability with very old
    clients use `HeldCertificate.Builder.rsa2048()`.
    
    Download
    --------
    
    ```kotlin
    implementation("com.squareup.okhttp3:okhttp-tls:4.12.0")
    ```
    
     [held_certificate]: https://square.github.io/okhttp/4.x/okhttp-tls/okhttp3.tls/-held-certificate/
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

    /**
     * An [RFC 3492] punycode decoder for converting ASCII to Unicode domain name labels. This is
     * intended for use in Internationalized Domain Names (IDNs).
     *
     * This class contains a Kotlin implementation of the pseudocode specified by RFC 3492. It includes
     * direct translation of the pseudocode presented there.
     *
     * Partner this class with [UTS #46] to implement IDNA2008 [RFC 5890] like most browsers do.
     *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 03 03:04:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top