Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for exists (0.15 sec)

  1. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        assertThat(filesystem.exists(getCleanFile("g1", 0))).isFalse()
        assertThat(filesystem.exists(getCleanFile("g1", 1))).isFalse()
        assertThat(filesystem.exists(getCleanFile("g2", 0))).isFalse()
        assertThat(filesystem.exists(getCleanFile("g2", 1))).isFalse()
        assertThat(filesystem.exists(cacheDir / "otherFile0")).isFalse()
        assertThat(filesystem.exists(cacheDir / "dir1")).isFalse()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http/StatusLine.kt

              ?: throw ProtocolException(
                "Unexpected status line: $statusLine",
              )
    
          // Parse an optional response message like "OK" or "Not Modified". If it
          // exists, it is separated from the response code by a space.
          var message = ""
          if (statusLine.length > codeStart + 3) {
            if (statusLine[codeStart + 3] != ' ') {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http/RequestLine.kt

        return !request.isHttps && proxyType == Proxy.Type.HTTP
      }
    
      /**
       * Returns the path to request, like the '/' in 'GET / HTTP/1.1'. Never empty, even if the request
       * URL is. Includes the query component if it exists.
       */
      fun requestPath(url: HttpUrl): String {
        val path = url.encodedPath
        val query = url.encodedQuery
        return if (query != null) "$path?$query" else path
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  4. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt

        val testCaseDirectory = File(resource.toURI()).toOkioPath()
        val result = mutableListOf<String>()
        for (path in fileSystem.list(testCaseDirectory)) {
          val story00 = path / "story_00.json"
          if (!fileSystem.exists(story00)) continue
          try {
            readStory(story00)
            result.add(path.name)
          } catch (ignored: IOException) {
            // Skip this path.
          }
        }
        return result.toTypedArray<String>()
    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)
  5. okhttp/src/test/java/okhttp3/internal/idn/IdnStringprep.kt

      /** LCat code points; bidi category is "L". */
      val lcatSet: CodePointSet,
    ) {
      /**
       * Returns [input] in canonical form according to these rules, or null if no such canonical form
       * exists for it.
       */
      operator fun invoke(input: String): String? = invoke(Buffer().writeUtf8(input))
    
      internal operator fun invoke(input: BufferedSource): String? {
        // 1. Map.
        val mapResult = Buffer()
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        this.assertThreadHoldsLock()
    
        if (initialized) {
          return // Already initialized.
        }
    
        // If a bkp file exists, use it instead.
        if (fileSystem.exists(journalFileBackup)) {
          // If journal file also exists just delete backup file.
          if (fileSystem.exists(journalFile)) {
            fileSystem.delete(journalFileBackup)
          } else {
            fileSystem.atomicMove(journalFileBackup, journalFile)
    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)
  7. samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt

    import org.junit.jupiter.api.Disabled
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.params.ParameterizedTest
    import org.junit.jupiter.params.provider.ArgumentsSource
    
    private val prefix = if (File("samples").exists()) "" else "../../"
    
    private fun mainFiles(): List<File> {
      val directories =
        listOf(
          "$prefix/samples/guide/src/main/java/okhttp3/guide",
          "$prefix/samples/guide/src/main/java/okhttp3/recipes",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  8. settings.gradle.kts

    project(":okhttp-logging-interceptor").name = "logging-interceptor"
    
    val androidHome = System.getenv("ANDROID_HOME")
    val localProperties = Properties().apply {
      val file = File("local.properties")
      if (file.exists()) {
        load(file.inputStream())
      }
    }
    val sdkDir = localProperties.getProperty("sdk.dir")
    if ((androidHome != null || sdkDir != null) && !isKnownBrokenIntelliJ()) {
      include(":okhttp-android")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Apr 14 14:24:05 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

        return connect
      }
    
      /**
       * Returns the connection already attached to the call if it's eligible for a new exchange.
       *
       * If the call's connection exists and is eligible for another exchange, it is returned. If it
       * exists but cannot be used for another exchange, it is closed and this returns null.
       */
      private fun planReuseCallConnection(): ReusePlan? {
        // This may be mutated by releaseConnectionNoEvents()!
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  10. build.gradle.kts

          skipDeprecated.set(true)
          jdkVersion.set(8)
          perPackageOption {
            matchingRegex.set(".*\\.internal.*")
            suppress.set(true)
          }
          if (project.file("Module.md").exists()) {
            includes.from(project.file("Module.md"))
          }
          externalDocumentationLink {
            url.set(URI.create("https://square.github.io/okio/3.x/okio/").toURL())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:32:42 GMT 2024
    - 8.9K bytes
    - Viewed (0)
Back to top