Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for downes (0.17 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

          assertThat(derReader.readOctetString()).isEqualTo("Jones".encodeUtf8())
        }
    
        assertThat(derReader.hasNext()).isFalse()
      }
    
      @Test fun `encode primitive string`() {
        val buffer = Buffer()
        val derWriter = DerWriter(buffer)
    
        derWriter.write("test", tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 26L) {
          derWriter.writeOctetString("Jones".encodeUtf8())
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

      internal fun cancelAllAndDecide(): Boolean {
        if (activeTask != null && activeTask!!.cancelable) {
          cancelActiveTask = true
        }
    
        var tasksCanceled = false
        for (i in futureTasks.size - 1 downTo 0) {
          if (futureTasks[i].cancelable) {
            taskRunner.logger.taskLog(futureTasks[i], this) { "canceled" }
            tasksCanceled = true
            futureTasks.removeAt(i)
          }
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt

          append("\n")
        }
      }
    }
    
    internal fun commonHeadersGet(
      namesAndValues: Array<String>,
      name: String,
    ): String? {
      for (i in namesAndValues.size - 2 downTo 0 step 2) {
        if (name.equals(namesAndValues[i], ignoreCase = true)) {
          return namesAndValues[i + 1]
        }
      }
      return null
    }
    
    internal fun Headers.Builder.commonAdd(
      name: String,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

    @Throws(IOException::class)
    internal fun Source.skipAll(
      duration: Int,
      timeUnit: TimeUnit,
    ): Boolean {
      val nowNs = System.nanoTime()
      val originalDurationNs =
        if (timeout().hasDeadline()) {
          timeout().deadlineNanoTime() - nowNs
        } else {
          Long.MAX_VALUE
        }
      timeout().deadlineNanoTime(nowNs + minOf(originalDurationNs, timeUnit.toNanos(duration.toLong())))
      return try {
        val skipBuffer = Buffer()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

       * Returns a snapshot of queues that currently have tasks scheduled. The task runner does not
       * necessarily track queues that have no tasks scheduled.
       */
      fun activeQueues(): List<TaskQueue> {
        lock.withLock {
          return busyQueues + readyQueues
        }
      }
    
      fun cancelAll() {
        lock.assertHeld()
        for (i in busyQueues.size - 1 downTo 0) {
          busyQueues[i].cancelAllAndDecide()
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  6. gradle/wrapper/gradle-wrapper.jar

    USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition,...
    Archive
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 24 09:00:26 GMT 2023
    - 42.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/internal/-UtilCommon.kt

     */
    internal fun String.indexOfLastNonAsciiWhitespace(
      startIndex: Int = 0,
      endIndex: Int = length,
    ): Int {
      for (i in endIndex - 1 downTo startIndex) {
        when (this[i]) {
          '\t', '\n', '\u000C', '\r', ' ' -> Unit
          else -> return i + 1
        }
      }
      return startIndex
    }
    
    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)
  9. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

                plusIsSpace = true,
              ),
            )
          }
    
        private fun removeAllCanonicalQueryParameters(canonicalName: String) {
          for (i in encodedQueryNamesAndValues!!.size - 2 downTo 0 step 2) {
            if (canonicalName == encodedQueryNamesAndValues!![i]) {
              encodedQueryNamesAndValues!!.removeAt(i + 1)
              encodedQueryNamesAndValues!!.removeAt(i)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

            okHttpSettings.merge(settings)
          }
          writer.settings(settings)
        }
      }
    
      fun isHealthy(nowNs: Long): Boolean {
        this.withLock {
          if (isShutdown) return false
    
          // A degraded pong is overdue.
          if (degradedPongsReceived < degradedPingsSent && nowNs >= degradedPongDeadlineNs) return false
    
          return true
        }
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
Back to top