Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Chen (0.21 sec)

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

          .isEqualTo("http://host/?a=%21%24%28%29%2C%2F%3A%3B%3F%40%5B%5D%5C%5E%60%7B%7C%7D%7E")
        assertThat(url.queryParameter("a")).isEqualTo("!$(),/:;?@[]\\^`{|}~")
      }
    
      /**
       * When callers use `addEncodedQueryParameter()` we only encode what's strictly required. We
       * retain the encoded (or non-encoded) state of the input.
       */
      @Test
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

          }
    
        /**
         * Sets the default connect timeout for new connections. A value of 0 means no timeout,
         * otherwise values must be between 1 and [Integer.MAX_VALUE] when converted to milliseconds.
         *
         * The connect timeout is applied when connecting a TCP socket to the target host. The default
         * value is 10 seconds.
         */
        fun connectTimeout(
          timeout: Long,
          unit: TimeUnit,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

          // On all platforms files are deleted when all sources are closed.
          snapshot1.assertValue(1, "a")
          assertThat(readFileOrNull(getCleanFile("k1", 0))).isNull()
          assertThat(readFileOrNull(getDirtyFile("k1", 0))).isNull()
        }
      }
    
      @ParameterizedTest
      @ArgumentsSource(FileSystemParamProvider::class)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/EventListenerTest.kt

       * This inserts a bunch of synthetic 250 ms delays into both client and server and confirms that
       * the same delays make it back into the events.
       *
       * We've had bugs where we report an event when we request data rather than when the data actually
       * arrives. https://github.com/square/okhttp/issues/5578
       */
      private fun timeToFirstByte() {
        val applicationInterceptorDelay = 250L
        val networkInterceptorDelay = 250L
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_3x.md

        ```
    
     *  Fix: Don't miss cancels when sending HTTP/2 request headers.
     *  Fix: Don't miss whole operation timeouts when calls redirect.
     *  Fix: Don't leak connections if web sockets have malformed responses or if `onOpen()` throws.
     *  Fix: Don't retry when request bodies fail due to `FileNotFoundException`.
     *  Fix: Don't crash when URLs have IPv4-mapped IPv6 addresses.
     *  Fix: Don't crash when building `HandshakeCertificates` on Android API 28.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * `square.com` or `localhost`, an IPv4 address like `192.168.0.1`, or an IPv6 address like `::1`.
     *
     * Usually a webserver is reachable with multiple identifiers: its IP addresses, registered
     * domain names, and even `localhost` when connecting from the server itself. Each of a web server's
     * names is a distinct URL and they are not interchangeable. For example, even if
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  7. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

            throw error!!
          }
        }
      }
    
      /**
       * We don't know if the connection will support HTTP/2 until after we've connected. When multiple
       * connections are requested concurrently OkHttp will pessimistically connect multiple times, then
       * close any unnecessary connections. This test confirms that behavior works as intended.
       *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

      ) {
        val actual = source!!.buffer().readUtf8()
        assertThat(actual).isEqualTo(expected)
      }
    
      /**
       * Returns true when all work currently in progress by the watchdog have completed. This method
       * creates more work for the watchdog and waits for that work to be executed. When it is, we know
       * work that preceded this call is complete.
       */
      private fun awaitWatchdogIdle() {
        val latch = CountDownLatch(1)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
Back to top