Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for isopen (0.22 sec)

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

    import okhttp3.UrlComponentEncodingTester.Encoding
    import okhttp3.testing.PlatformVersion
    
    @Suppress("HttpUrlsUsage") // Don't warn if we should be using https://.
    open class HttpUrlTest {
      protected open fun parse(url: String): HttpUrl {
        return url.toHttpUrl()
      }
    
      protected open fun assertInvalid(
        string: String,
        exceptionMessage: String?,
      ) {
        try {
          val result = string.toHttpUrl()
    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/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        }
        sink1.writeUtf8("def")
        sink1.close()
        assertFailsWith<ConnectionShutdownException> {
          connection.newStream(headerEntries("c", "cola"), true)
        }
        assertThat(stream1.isOpen).isTrue()
        assertThat(stream2.isOpen).isFalse()
        assertThat(connection.openStreamCount()).isEqualTo(1)
    
        // Verify the peer received what was expected.
        val synStream1 = peer.takeFrame()
    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)
  3. 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 May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

          cache.remove("k1")
    
          // On Windows files still exist with open with 2 open sources.
          assertThat(readFileOrNull(getCleanFile("k1", 0))).isEqualTo(afterRemoveFileContents)
          assertThat(readFileOrNull(getDirtyFile("k1", 0))).isNull()
    
          // On Windows files still exist with open with 1 open source.
          snapshot1.assertValue(0, "a")
    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)
  5. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

     *
     * ```java
     * client.cache().close();
     * ```
     *
     * OkHttp also uses daemon threads for HTTP/2 connections. These will exit automatically if they
     * remain idle.
     */
    open class OkHttpClient internal constructor(
      builder: Builder,
    ) : Call.Factory, WebSocket.Factory {
      @get:JvmName("dispatcher")
      val dispatcher: Dispatcher = builder.dispatcher
    
      /**
    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/api/okhttp.api

    	public fun onFailure (Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V
    	public fun onMessage (Lokhttp3/WebSocket;Ljava/lang/String;)V
    	public fun onMessage (Lokhttp3/WebSocket;Lokio/ByteString;)V
    	public fun onOpen (Lokhttp3/WebSocket;Lokhttp3/Response;)V
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
Back to top