Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for bere (0.16 sec)

  1. mockwebserver/README.md

    ### Example
    
    Use MockWebServer the same way that you use mocking frameworks like
    [Mockito](https://github.com/mockito/mockito):
    
    1. Script the mocks.
    2. Run application code.
    3. Verify that the expected requests were made.
    
    Here's a complete example:
    
    ```java
    public void test() throws Exception {
      // Create a MockWebServer. These are lean enough that you can create a new
      // instance for every unit test.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  2. docs/changelogs/changelog_4x.md

    **This release fixes a severe bug where OkHttp incorrectly detected and recovered from unhealthy
    connections.** Stale or canceled connections were incorrectly attempted when they shouldn't have
    been, leading to rare cases of infinite retries. Please upgrade to this release!
    
     *  Fix: don't return stale DNS entries in `DnsOverHttps`. We were caching DNS results indefinitely
        rather than the duration specified in the response's cache-control header.
    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)
  3. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

      for (i in 0 until length) {
        val c = this[i]
        // The WHATWG Host parsing rules accepts some character codes which are invalid by
        // definition for OkHttp's host header checks (and the WHATWG Host syntax definition). Here
        // we rule out characters that would cause problems in host headers.
        if (c <= '\u001f' || c >= '\u007f') {
          return true
        }
        // Check for the characters mentioned in the WHATWG Host parsing spec:
    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)
  4. docs/features/events.md

    ![Events Diagram](../assets/images/******@****.***)
    
    Here’s a [sample event listener](https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java) that prints each event with a timestamp.
    
    ```java
    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)
  5. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

        var b = 0
        for (codePoint in input) {
          if (codePoint < INITIAL_N) {
            result.writeByte(codePoint)
            b++
          }
        }
    
        // Copy a delimiter if any basic code points were emitted.
        if (b > 0) result.writeByte('-'.code)
    
        var n = INITIAL_N
        var delta = 0
        var bias = INITIAL_BIAS
        var h = b
        while (h < input.size) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

      }
    
      @Test
      fun connectViaHttpProxyToHttpsUsingHttpsProxySystemProperty() {
        testConnectViaHttpProxyToHttps(ProxyConfig.HTTPS_PROXY_SYSTEM_PROPERTY)
      }
    
      /**
       * We were verifying the wrong hostname when connecting to an HTTPS site through a proxy.
       * http://b/3097277
       */
      private fun testConnectViaHttpProxyToHttps(proxyConfig: ProxyConfig) {
    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)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

     *    default to their previous value.
     *
     * Every [edit] call must be matched by a call to [Editor.commit] or [Editor.abort]. Committing is
     * atomic: a read observes the full set of values as they were before or after the commit, but never
     * a mix of values.
     *
     * Clients call [get] to read a snapshot of an entry. The read will observe the value at the time
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticator.kt

                challenge.charset,
              )
            return request.newBuilder()
              .header(credentialHeader, credential)
              .build()
          }
        }
    
        return null // No challenges were satisfied!
      }
    
      @Throws(IOException::class)
      private fun Proxy.connectToInetAddress(
        url: HttpUrl,
        dns: Dns,
      ): InetAddress {
        return when (type()) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  9. docs/features/https.md

        at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
    ```
    
    You can check a web server's configuration using [Qualys SSL Labs][qualys]. OkHttp's TLS
    configuration history is [tracked here](../security/tls_configuration_history.md).
    
    Applications expected to be installed on older Android devices should consider adopting the
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Dec 24 00:16:30 GMT 2022
    - 10.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

      /**
       * Returns the effective top-level domain plus one (eTLD+1) by referencing the public suffix list.
       * Returns null if the domain is a public suffix or a private address.
       *
       * Here are some examples:
       *
       * ```java
       * assertEquals("google.com", getEffectiveTldPlusOne("google.com"));
       * assertEquals("google.com", getEffectiveTldPlusOne("www.google.com"));
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.7K bytes
    - Viewed (0)
Back to top