Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for true (6.59 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

      /**
       * If true, no new exchanges can be created on this connection. It is necessary to set this to
       * true when removing a connection from the pool; otherwise a racing caller might get it from the
       * pool when it shouldn't. Symmetrically, this must always be checked before returning a
       * connection from the pool.
       *
       * Once true this is always true. Guarded by this.
       */
      var noNewExchanges = false
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

      /** True if this call still has a request body open. */
      private var requestBodyOpen = false
    
      /** True if this call still has a response body open. */
      private var responseBodyOpen = false
    
      /** True if there are more exchanges expected for this call. */
      private var expectMoreExchanges = true
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  3. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

        private fun bodyHasUnknownEncoding(headers: Headers): Boolean {
          val contentEncoding = headers["Content-Encoding"] ?: return false
          return !contentEncoding.equals("identity", ignoreCase = true) &&
            !contentEncoding.equals("gzip", ignoreCase = true)
        }
    
        private fun bodyIsStreaming(response: Response): Boolean {
          val contentType = response.body.contentType()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  4. docs/changelogs/changelog_4x.md

        ```kotlin
        val response: Response = call.execute()
        val multipartReader = MultipartReader(response.body!!)
    
        multipartReader.use {
          while (true) {
            val part = multipartReader.nextPart() ?: break
            process(part.headers, part.body)
          }
        }
        ```
    
     *  New: `MediaType.parameter()` gets a parameter like `boundary` from a media type like
    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/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        // Make an SSL Tunnel on the first message pair of each SSL + proxy connection.
        val url = route.address.url
        val requestLine = "CONNECT ${url.toHostHeader(includeDefaultPort = true)} HTTP/1.1"
        while (true) {
          val source = this.source!!
          val sink = this.sink!!
          val tunnelCodec =
            Http1ExchangeCodec(
              // No client for CONNECT tunnels:
              client = null,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Cache.kt

            if (nextUrl != null) return true
    
            canRemove = false // Prevent delegate.remove() on the wrong item!
            while (delegate.hasNext()) {
              try {
                delegate.next().use { snapshot ->
                  val metadata = snapshot.getSource(ENTRY_METADATA).buffer()
                  nextUrl = metadata.readUtf8LineStrict()
                  return true
                }
              } catch (_: IOException) {
    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)
  7. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

              "100000a1b000603617069c012c0300005000100000b1f000c04737461720463313072c012c042001c000" +
              "10000003b00102a032880f0290011faceb00c00000002",
          ),
        )
        dns = buildLocalhost(bootstrapClient, true)
        val result = dns.lookup("google.com")
        assertThat(result.size).isEqualTo(2)
        assertThat(result).contains(address("157.240.1.18"))
        assertThat(result).contains(address("2a03:2880:f029:11:face:b00c:0:2"))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 11K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

            !"TE".equals(fieldName, ignoreCase = true) &&
            !"Trailers".equals(fieldName, ignoreCase = true) &&
            !"Transfer-Encoding".equals(fieldName, ignoreCase = true) &&
            !"Upgrade".equals(fieldName, ignoreCase = true)
        }
    
        /**
         * Returns true if [fieldName] is content specific and therefore should always be used
         * from cached headers.
         */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

        object : Runnable {
          override fun run() {
            var incrementedRunCallCount = false
            while (true) {
              val task =
                ******@****.***ck {
                  if (!incrementedRunCallCount) {
                    incrementedRunCallCount = true
                    runCallCount++
                  }
                  awaitTaskToRun()
                } ?: return
    
    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)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        taskRunner.lock.withLock {
          yieldUntil()
        }
      }
    
      /** Process the queue until [condition] returns true. */
      private tailrec fun yieldUntil(
        strategy: ResumePriority = ResumePriority.AfterEnqueuedTasks,
        condition: () -> Boolean = { true },
      ) {
        taskRunner.assertThreadHoldsLock()
        val self = currentTask
    
        val yieldCompleteTask =
          object : SerialTask {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
Back to top