Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for cacheGet (0.03 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/internal.kt

    ): Headers.Builder = builder.addLenient(line)
    
    internal fun addHeaderLenient(
      builder: Headers.Builder,
      name: String,
      value: String,
    ): Headers.Builder = builder.addLenient(name, value)
    
    internal fun cacheGet(
      cache: Cache,
      request: Request,
    ): Response? = cache.get(request)
    
    internal fun applyConnectionSpec(
      connectionSpec: ConnectionSpec,
      sslSocket: SSLSocket,
      isFallback: Boolean,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.MediaType.Companion.toMediaTypeOrNull
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.internal.addHeaderLenient
    import okhttp3.internal.cacheGet
    import okhttp3.internal.platform.Platform.Companion.get
    import okhttp3.java.net.cookiejar.JavaNetCookieJar
    import okhttp3.testing.PlatformRule
    import okio.Buffer
    import okio.BufferedSink
    import okio.FileSystem
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 116.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        AtomicReference<LoadingCache<Integer, String>> cacheRef = new AtomicReference<>();
        CacheLoader<Integer, String> recursiveLoader =
            new CacheLoader<Integer, String>() {
              @Override
              public String load(Integer key) {
                if (key > 0) {
                  return key + ", " + cacheRef.get().getUnchecked(key - 1);
                } else {
                  return "0";
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/EventListenerAdapter.kt

      ) = onEvent(SatisfactionFailure(System.nanoTime(), call))
    
      override fun cacheMiss(call: Call) = onEvent(CacheMiss(System.nanoTime(), call))
    
      override fun cacheHit(
        call: Call,
        response: Response,
      ) = onEvent(CacheHit(System.nanoTime(), call))
    
      override fun cacheConditionalHit(
        call: Call,
        cachedResponse: Response,
      ) = onEvent(CacheConditionalHit(System.nanoTime(), call))
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  5. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

      override fun satisfactionFailure(
        call: Call,
        response: Response,
      ) {
        logWithTime("satisfactionFailure: $response")
      }
    
      override fun cacheHit(
        call: Call,
        response: Response,
      ) {
        logWithTime("cacheHit: $response")
      }
    
      override fun cacheMiss(call: Call) {
        logWithTime("cacheMiss")
      }
    
      override fun cacheConditionalHit(
        call: Call,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Oct 06 13:40:20 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

        listener.cacheConditionalHit(call, response)
        listener.cacheHit(call, response)
        listener.cacheMiss(call)
        listener.satisfactionFailure(call, response)
        logRecorder
          .assertLogMatch(Regex("""cacheConditionalHit: Response\{protocol=h2, code=200, message=, url=$url\}"""))
          .assertLogMatch(Regex("""cacheHit: Response\{protocol=h2, code=200, message=, url=$url\}"""))
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt

      ) {
        logWithTime("satisfactionFailure")
      }
    
      override fun cacheMiss(call: Call) {
        logWithTime("cacheMiss")
      }
    
      override fun cacheHit(
        call: Call,
        response: Response,
      ) {
        logWithTime("cacheHit")
      }
    
      override fun cacheConditionalHit(
        call: Call,
        cachedResponse: Response,
      ) {
        logWithTime("cacheConditionalHit")
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 21:03:04 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

        ) {
          for (delegate in eventListeners) {
            delegate.satisfactionFailure(call, response)
          }
        }
    
        override fun cacheHit(
          call: Call,
          response: Response,
        ) {
          for (delegate in eventListeners) {
            delegate.cacheHit(call, response)
          }
        }
    
        override fun cacheMiss(call: Call) {
          for (delegate in eventListeners) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 21:03:04 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  9. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

    import kotlin.reflect.KClass
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.junit5.StartStop
    import okhttp3.Cache
    import okhttp3.CallEvent
    import okhttp3.CallEvent.CacheHit
    import okhttp3.CallEvent.CacheMiss
    import okhttp3.Dns
    import okhttp3.EventRecorder
    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    import okhttp3.testing.PlatformRule
    import okio.Buffer
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

      private inner class RealCacheRequest(
        private val editor: DiskLruCache.Editor,
      ) : CacheRequest {
        private val cacheOut: Sink = editor.newSink(ENTRY_BODY)
        private val body: Sink
        var done = false
    
        init {
          this.body =
            object : ForwardingSink(cacheOut) {
              @Throws(IOException::class)
              override fun close() {
                synchronized(this@Cache) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 26.8K bytes
    - Viewed (0)
Back to top