Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for delete (0.15 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/graal/GraalSvm.kt

    @TargetClass(AndroidPlatform::class)
    @Delete
    class TargetAndroidPlatform
    
    @TargetClass(Android10Platform::class)
    @Delete
    class TargetAndroid10Platform
    
    @TargetClass(BouncyCastlePlatform::class)
    @Delete
    class TargetBouncyCastlePlatform
    
    @TargetClass(ConscryptPlatform::class)
    @Delete
    class TargetConscryptPlatform
    
    @TargetClass(Jdk8WithJettyBootPlatform::class)
    @Delete
    class TargetJdk8WithJettyBootPlatform
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 07 16:05:34 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        val response =
          getResponse(
            Request.Builder()
              .url(server.url("/"))
              .delete("BODY".toRequestBody(null))
              .build(),
          )
        assertThat(response.code).isEqualTo(200)
        val request = server.takeRequest()
        assertThat(request.method).isEqualTo("DELETE")
        assertThat(request.body.readUtf8()).isEqualTo("BODY")
      }
    
      @Test
    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)
  3. okhttp/src/test/java/okhttp3/internal/io/FaultyFileSystem.kt

        super.atomicMove(source, target)
      }
    
      @Throws(IOException::class)
      override fun delete(
        path: Path,
        mustExist: Boolean,
      ) {
        if (deleteFaults.contains(path)) throw IOException("boom!")
        super.delete(path, mustExist)
      }
    
      @Throws(IOException::class)
      override fun deleteRecursively(
        fileOrDirectory: Path,
        mustExist: Boolean,
      ) {
    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)
  4. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

      }
      delete(file)
      return false
    }
    
    /** Delete file we expect but don't require to exist. */
    internal fun FileSystem.deleteIfExists(path: Path) {
      try {
        delete(path)
      } catch (fnfe: FileNotFoundException) {
        return
      }
    }
    
    /** Tolerant delete, try to clear as many files as possible even after a failure. */
    internal fun FileSystem.deleteContents(directory: Path) {
      var exception: IOException? = null
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_4x.md

     *  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
        are currently being read or written. On Windows the file system forbids this so we must be more
        careful when deleting and renaming files.
    
    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)
  6. okhttp/src/test/java/okhttp3/RequestTest.kt

        assertThat(head.method).isEqualTo("HEAD")
        assertThat(head.body).isNull()
    
        val delete = Request.Builder().url("http://localhost/api").delete().build()
        assertThat(delete.method).isEqualTo("DELETE")
        assertThat(delete.body!!.contentLength()).isEqualTo(0L)
    
        val post = Request.Builder().url("http://localhost/api").post(body).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. docs/features/caching.md

     
    ## Cache directory
    
    The cache directory must be exclusively owned by a single instance.
    
    Deleting the cache when it is no longer needed can be done.  However this may delete the purpose of the cache
    which is designed to persist between app restarts.
    
    ```kotlin
    cache.delete()
    ```
     
    ## Pruning the Cache
    
    Pruning the entire Cache to clear space temporarily can be done using evictAll.
    
    ```kotlin
    cache.evictAll()
    ```
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Cache.kt

      fun initialize() {
        cache.initialize()
      }
    
      /**
       * Closes the cache and deletes all of its stored values. This will delete all files in the cache
       * directory including files that weren't created by the cache.
       */
      @Throws(IOException::class)
      fun delete() {
        cache.delete()
      }
    
      /**
       * Deletes all values stored in the cache. In-flight writes to the cache will complete normally,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        }
        return false
      }
    
      /**
       * Closes the cache and deletes all of its stored values. This will delete all files in the cache
       * directory including files that weren't created by the cache.
       */
      @Throws(IOException::class)
      fun delete() {
        close()
        fileSystem.deleteContents(directory)
      }
    
      /**
       * Deletes all stored values from the cache. In-flight edits will complete normally but their
    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)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/okio/LoggingFilesystem.kt

        dir: Path,
        mustCreate: Boolean,
      ) {
        log("createDirectory($dir)")
    
        super.createDirectory(dir, mustCreate)
      }
    
      override fun delete(
        path: Path,
        mustExist: Boolean,
      ) {
        log("delete($path)")
    
        super.delete(path, mustExist)
      }
    
      override fun sink(
        path: Path,
        mustCreate: Boolean,
      ): Sink {
        log("sink($path)")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.7K bytes
    - Viewed (0)
Back to top