Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 174 for We (0.17 sec)

  1. docs/changelogs/changelog_4x.md

        could use new flow control capacity before acknowledging it, causing strict HTTP/2 servers to
        fail the call.
    
    
    ## Version 4.1.1
    
    _2019-09-05_
    
     *  Fix: Don't drop repeated headers when validating cached responses. In our Kotlin upgrade we
        introduced a regression where we iterated the number of unique header names rather than then
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

         *
         * ## Upstream
         *
         * In this case the current thread is assigned as the upstream reader. We read bytes from
         * upstream and copy them to both the file and to the buffer. Finally we release the upstream
         * reader lock and return the new bytes.
         *
         * ## The file
         *
         * In this case we copy bytes from the file to the [sink].
         *
         * ## The buffer
         *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        lock.assertHeld()
    
        // If this connection is not accepting new exchanges, we're done.
        if (calls.size >= allocationLimit || noNewExchanges) return false
    
        // If the non-host fields of the address don't overlap, we're done.
        if (!this.route.address.equalsNonHost(address)) return false
    
        // If the host exactly matches, we're done: this connection can carry the address.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

              if (rule.startsWith(EXCEPTION_RULE_MARKER)) {
                rule = rule.substring(1)
                // We use '\n' for end of value.
                totalExceptionRuleBytes += rule.size + 1
                sortedExceptionRules.add(rule)
              } else {
                totalRuleBytes += rule.size + 1 // We use '\n' for end of value.
                sortedRules.add(rule)
              }
            }
          }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

          if (input.startsWith(":", startIndex = i)) {
            i++
          } else if (input.startsWith(".", startIndex = i)) {
            // If we see a '.', rewind to the beginning of the previous group and parse as IPv4.
            if (!decodeIpv4Suffix(input, groupOffset, limit, address, b - 2)) return null
            b += 2 // We rewound two bytes and then added four.
            break
          } else {
            return null // Wrong delimiter.
          }
        }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  6. okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt

        }
      }
    
      override fun loadForRequest(url: HttpUrl): List<Cookie> {
        val cookieHeaders =
          try {
            // The RI passes all headers. We don't have 'em, so we don't pass 'em!
            cookieHandler.get(url.toUri(), emptyMap<String, List<String>>())
          } catch (e: IOException) {
            Platform.get().log("Loading cookies failed for " + url.resolve("/...")!!, WARN, e)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:10:43 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. docs/features/events.md

        printEvent("dnsStart");
      }
    
      @Override public void dnsEnd(Call call, String domainName, List<InetAddress> inetAddressList) {
        printEvent("dnsEnd");
      }
    
      ...
    }
    ```
    
    We make a couple calls:
    
    ```java
    Request request = new Request.Builder()
        .url("https://publicobject.com/helloworld.txt")
        .build();
    
    System.out.println("REQUEST 1 (new connection)");
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

     * and the implementation should respond with a new request that sets the "Authorization" header.
     *
     * ```java
     * if (response.request().header("Authorization") != null) {
     *   return null; // Give up, we've already failed to authenticate.
     * }
     *
     * String credential = Credentials.basic(...)
     * return response.request().newBuilder()
     *     .header("Authorization", credential)
     *     .build();
     * ```
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

          "FGHIJKLMNOPQRSTUVWXYZ",
        )
        inputStream.close()
        assertContent("ABCDEFGHIJKLMNOPQRSTUVWXYZ", getResponse(newRequest("/")))
      }
    
      /**
       * We've had a bug where we forget the HTTP response when we see response code 401. This causes a
       * new HTTP request to be issued for every call into the URLConnection.
       */
      @Test
      fun unauthorizedResponseHandling() {
        val mockResponse =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

            if (toClose != null) {
              connection.connectionListener.connectionClosed(connection)
            }
          } else {
            check(toClose == null) // If we still have a connection we shouldn't be closing any sockets.
          }
        }
    
        val result = timeoutExit(e)
        if (e != null) {
          eventListener.callFailed(this, result!!)
        } else {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
Back to top