Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 73 for Using (0.15 sec)

  1. docs/features/interceptors.md

     * Permitted to short-circuit and not call `Chain.proceed()`.
     * Permitted to retry and make multiple calls to `Chain.proceed()`.
     * Can adjust Call timeouts using withConnectTimeout, withReadTimeout, withWriteTimeout.
    
    **Network Interceptors**
    
     * Able to operate on intermediate responses like redirects and retries.
    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. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

                }
              }
            }
          }
        }
    
        /** Returns a strategy to satisfy [request] using [cacheResponse]. */
        fun compute(): CacheStrategy {
          val candidate = computeCandidate()
    
          // We're forbidden from using the network and the cache is insufficient.
          if (candidate.networkRequest != null && request.cacheControl.onlyIfCached) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

        val urlString = component.urlString(expected)
        val url = urlString.toHttpUrl()
        val actual = component.encodedValue(url)
        if (actual != expected) {
          fail("Encoding $component $codePoint using $encoding: '$actual' != '$expected'")
        }
      }
    
      private fun testEncodeAndDecode(
        codePoint: Int,
        codePointString: String,
        component: Component,
      ) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/platform/ConscryptPlatform.kt

    import javax.net.ssl.TrustManagerFactory
    import javax.net.ssl.X509TrustManager
    import okhttp3.Protocol
    import org.conscrypt.Conscrypt
    import org.conscrypt.ConscryptHostnameVerifier
    
    /**
     * Platform using Conscrypt (conscrypt.org) if installed as the first Security Provider.
     *
     * Requires org.conscrypt:conscrypt-openjdk-uber >= 2.1.0 on the classpath.
     */
    class ConscryptPlatform private constructor() : Platform() {
    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)
  5. samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java

    import okhttp3.Response;
    import okio.BufferedSink;
    import okio.GzipSink;
    import okio.Okio;
    
    public final class RequestBodyCompression {
      /**
       * The Google API KEY for OkHttp recipes. If you're using Google APIs for anything other than
       * running these examples, please request your own client ID!
       *
       * https://console.developers.google.com/project
       */
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat May 25 18:02:55 GMT 2019
    - 3.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

          HTTP_PROXY_AUTH -> {
            val selectedProxy = route!!.proxy
            if (selectedProxy.type() != Proxy.Type.HTTP) {
              throw ProtocolException("Received HTTP_PROXY_AUTH (407) code while not using proxy")
            }
            return client.proxyAuthenticator.authenticate(route, userResponse)
          }
    
          HTTP_UNAUTHORIZED -> return client.authenticator.authenticate(route, userResponse)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12.1K bytes
    - Viewed (4)
  7. okhttp/src/main/kotlin/okhttp3/CipherSuite.kt

         * initialized by the time those parts of `<clinit>()` run. Guarded by CipherSuite.class.
         */
        private val INSTANCES = mutableMapOf<String, CipherSuite>()
    
        // Last updated 2016-07-03 using cipher suites from Android 24 and Java 9.
    
        // @JvmField val TLS_NULL_WITH_NULL_NULL = init("TLS_NULL_WITH_NULL_NULL", 0x0000)
        @JvmField val TLS_RSA_WITH_NULL_MD5 = init("SSL_RSA_WITH_NULL_MD5", 0x0001)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 39.9K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       */
      open fun canceled(call: Call) {
      }
    
      /**
       * Invoked when a call fails due to cache rules.
       * For example, we're forbidden from using the network and the cache is insufficient
       */
      open fun satisfactionFailure(
        call: Call,
        response: Response,
      ) {
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         * the server as an extra parameter. Regardless of what checks this method performs, OkHttp will
         * always check that the server's certificates match its hostname using the [HostnameVerifier].
         * See [android.net.http.X509TrustManagerExtensions] for more information.
         */
        fun sslSocketFactory(
          sslSocketFactory: SSLSocketFactory,
          trustManager: X509TrustManager,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

            fileBuilder.append(".tmp")
            dirtyFiles += directory / fileBuilder.toString()
            fileBuilder.setLength(truncateTo)
          }
        }
    
        /** Set lengths using decimal numbers like "10123". */
        @Throws(IOException::class)
        internal fun setLengths(strings: List<String>) {
          if (strings.size != valueCount) {
            invalidLengths(strings)
          }
    
    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)
Back to top