Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for invalidate (0.17 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt

      override fun getCreationTime(): Long {
        return delegate!!.creationTime
      }
    
      override fun getLastAccessedTime(): Long {
        return delegate!!.lastAccessedTime
      }
    
      override fun invalidate() {
        delegate!!.invalidate()
      }
    
      override fun isValid(): Boolean {
        return delegate!!.isValid
      }
    
      override fun putValue(
        s: String,
        o: Any,
      ) {
        delegate!!.putValue(s, o)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt

              canUseHeaderValue = false
            } else {
              headerValue = value
            }
          }
          name.equals("Pragma", ignoreCase = true) -> {
            // Might specify additional cache-control params. We invalidate just in case.
            canUseHeaderValue = false
          }
          else -> {
            continue@loop
          }
        }
    
        var pos = 0
        while (pos < value.length) {
          val tokenStart = pos
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/FakeSSLSession.kt

      override fun getValue(s: String): Any {
        throw UnsupportedOperationException()
      }
    
      override fun getValueNames(): Array<String> {
        throw UnsupportedOperationException()
      }
    
      override fun invalidate() {
        throw UnsupportedOperationException()
      }
    
      override fun isValid(): Boolean {
        throw UnsupportedOperationException()
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_4x.md

     *  Fix: Don't crash decompressing web sockets messages. We had a bug where we assumed deflated
        bytes in would always yield deflated bytes out and this isn't always the case!
    
     *  Fix: Reliably update and invalidate the disk cache on windows. As originally designed our
        internal `DiskLruCache` assumes an inode-like file system, where it's fine to delete files that
    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)
  5. okhttp/src/test/java/okhttp3/CacheTest.kt

            .build()
        val invalidate = client.newCall(request).execute()
        assertThat(invalidate.body.string()).isEqualTo("B")
        assertThat(get(url).body.string()).isEqualTo("C")
      }
    
      @Test
      fun postInvalidatesCacheWithUncacheableResponse() {
        // 1. Seed the cache.
        // 2. Invalidate it with an uncacheable response.
        // 3. Expect a cache miss.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        val requestB = server.takeRequest()
        assertThat(requestB.sequenceNumber).isEqualTo(1)
      }
    
      /**
       * The RFC is unclear in this regard as it only specifies that this should invalidate the cache
       * entry (if any).
       */
      @Test
      fun bodyPermittedOnDelete() {
        server.enqueue(MockResponse())
        val response =
          getResponse(
            Request.Builder()
    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)
  7. okhttp/src/test/java/okhttp3/CacheControlJvmTest.kt

            "Cache-Control",
            "must-revalidate",
          )
        val cacheControl = parse(headers)
        assertThat(cacheControl.toString()).isEqualTo("max-age=12, must-revalidate")
      }
    
      @Test
      fun parsePragmaHeaderValueIsNotRetained() {
        val headers = headersOf("Pragma", "must-revalidate")
        val cacheControl = parse(headers)
        assertThat(cacheControl.toString()).isEqualTo("must-revalidate")
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectInterceptor.kt

    import okhttp3.Response
    import okhttp3.internal.http.RealInterceptorChain
    
    /**
     * Opens a connection to the target server and proceeds to the next interceptor. The network might
     * be used for the returned response, or to validate a cached response with a conditional GET.
     */
    object ConnectInterceptor : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  9. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

          headers.add(name, value.toString())
        }
    
        /**
         * Adds a new header with the name and value. This may be used to add multiple headers with the
         * same name. Unlike [addHeader] this does not validate the name and
         * value.
         */
        fun addHeaderLenient(
          name: String,
          value: Any,
        ) = apply {
          addHeaderLenient(headers, name, value.toString())
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 13.3K bytes
    - Viewed (1)
  10. okhttp/src/main/kotlin/okhttp3/CacheControl.kt

        internal var minFreshSeconds = -1
        internal var onlyIfCached: Boolean = false
        internal var noTransform: Boolean = false
        internal var immutable: Boolean = false
    
        /** Don't accept an unvalidated cached response. */
        fun noCache() = commonNoCache()
    
        /** Don't store the server's response in any cache. */
        fun noStore() = commonNoStore()
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 10K bytes
    - Viewed (0)
Back to top