Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Ehat (0.14 sec)

  1. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        //  * They don't use percent escaping at all.
        //  * They use punycode for internationalization.
        //  * URI is much more strict than HttpUrl or URL on what's accepted.
        //
        // HttpUrl is quite lenient with what characters it accepts. In particular, characters like '{'
        // and '"' are permitted but unlikely to occur in real-world URLs. Unfortunately we can't just
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * stores information-per-URL will need to either canonicalize manually, or suffer unnecessary
     * redundancy for such URLs.
     *
     * Because they don't attempt canonical form, these classes are surprisingly difficult to use
     * securely. Suppose you're building a webservice that checks that incoming paths are prefixed
    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)
  3. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        assertThat(server.takeRequest().sequenceNumber).isEqualTo(1) // New connection.
      }
    
      /**
       * We had a bug where we'd perform infinite retries of route that fail with connection shutdown
       * errors. The problem was that the logic that decided whether to reuse a route didn't track
       * certain HTTP/2 errors. https://github.com/square/okhttp/issues/5547
       */
      @ParameterizedTest
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_3x.md

        connections alive so applications that have many pools also risk exhausting
        memory!
    
        The best practice in OkHttp 3 is to create a single OkHttpClient instance
        and share it throughout the application. Requests that needs a customized
        client should call `OkHttpClient.newBuilder()` on that shared instance.
        This allows customization without the drawbacks of separate connection
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

     * ```
     *
     * Clear the connection pool with [evictAll()][ConnectionPool.evictAll]. Note that the connection
     * pool's daemon thread may not exit immediately.
     *
     * ```java
     * client.connectionPool().evictAll();
     * ```
     *
     * If your client has a cache, call [close()][Cache.close]. Note that it is an error to create calls
     * against a cache that is closed, and doing so will cause the call to crash.
     *
     * ```java
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        assertThat(cache.remove("a")).isTrue()
        a.setString(1, "a2")
        a.commit()
        assertAbsent("a")
      }
    
      /**
       * Each read sees a snapshot of the file at the time read was called. This means that two reads of
       * the same key can see different data.
       */
      @ParameterizedTest
      @ArgumentsSource(FileSystemParamProvider::class)
      fun readAndWriteOverlapsMaintainConsistency(parameters: Pair<FileSystem, Boolean>) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/EventListenerTest.kt

            Request.Builder()
              .url("http://" + SocksProxy.HOSTNAME_THAT_ONLY_THE_PROXY_KNOWS + ":" + server.port)
              .build(),
          )
        val response = call.execute()
        assertThat(response.code).isEqualTo(200)
        response.body.close()
        val expectedAddress =
          InetSocketAddress.createUnresolved(
            SocksProxy.HOSTNAME_THAT_ONLY_THE_PROXY_KNOWS,
            server.port,
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        // Verify the peer received what was expected.
        assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_HEADERS)
        assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_RST_STREAM)
      }
    
      /**
       * Confirm that the client times out if the server stalls after 3 bytes. After the timeout the
       * connection is still considered healthy while we await the degraded pong. When that doesn't
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
Back to top