Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Peaches (0.24 sec)

  1. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

       * data section was empty. Any number of calls to [Callback.onRetryChange] may occur while
       * processing an event.
       *
       * @return false when EOF is reached
       */
      @Throws(IOException::class)
      fun processNextEvent(): Boolean {
        var id = lastId
        var type: String? = null
        val data = Buffer()
    
        while (true) {
          when (source.select(options)) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

          object : Task(name, cancelable) {
            override fun runOnce(): Long {
              block()
              return -1L
            }
          },
          delayNanos,
        )
      }
    
      /** Returns a latch that reaches 0 when the queue is next idle. */
      fun idleLatch(): CountDownLatch {
        taskRunner.lock.withLock {
          // If the queue is already idle, that's easy.
          if (activeTask == null && futureTasks.isEmpty()) {
    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. docs/features/calls.md

    ## Retrying Requests
    
    Sometimes connections fail: either a pooled connection was stale and disconnected, or the webserver itself couldn’t be reached. OkHttp will retry the request with a different route if one is available.
    
    ## [Calls](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-call/)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  4. samples/crawler/src/main/java/okhttp3/sample/Crawler.java

    import okhttp3.MediaType;
    import okhttp3.OkHttpClient;
    import okhttp3.Request;
    import okhttp3.Response;
    import org.jsoup.Jsoup;
    import org.jsoup.nodes.Document;
    import org.jsoup.nodes.Element;
    
    /**
     * Fetches HTML from a requested URL, follows the links, and repeats.
     */
    public final class Crawler {
      private final OkHttpClient client;
      private final Set<HttpUrl> fetchedUrls = Collections.synchronizedSet(new LinkedHashSet<>());
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Aug 12 07:26:27 GMT 2021
    - 4.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt

            if (verifySignature(toVerify, signingCert, result.size - 1)) {
              i.remove()
              result.add(signingCert)
              continue@followIssuerChain
            }
          }
    
          // We've reached the end of the chain. If any cert in the chain is trusted, we're done.
          if (foundTrustedCertificate) {
            return result
          }
    
          // The last link isn't trusted. Fail.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

          else -> error("unexpected rangesIndex for $codePoint")
        }
    
        return true
      }
    
      /**
       * Binary search [sections] for [codePoint], looking at its top 14 bits.
       *
       * This binary searches over 4-byte entries, and so it needs to adjust binary search indices
       * in (by dividing by 4) and out (by multiplying by 4).
       */
      private fun findSectionsIndex(codePoint: Int): Int {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt

      }
    
      /**
       * We had a bug where self-finishing inflater streams would infinite loop!
       * https://github.com/square/okhttp/issues/8078
       */
      @Test fun `inflate returns finished before bytesRead reaches input length`() {
        val inflater = MessageInflater(false)
        val message = "53621260020000".decodeHex()
        assertThat(inflater.inflate(message)).isEqualTo("22021002".decodeHex())
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 06 05:31:00 GMT 2024
    - 5K bytes
    - Viewed (0)
Back to top