Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for close (0.16 sec)

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

          )
        var response = call.execute()
        assertThat(response.code).isEqualTo(200)
        response.close()
        listener.clearAllEvents()
        call = call.clone()
        response = call.execute()
        assertThat(response.code).isEqualTo(200)
        assertThat(response.body.string()).isEqualTo("abc")
        response.close()
        assertThat(listener.recordedEventTypes()).containsExactly(
          "CallStart", "CacheConditionalHit",
    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)
  2. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        while (!toClose.isEmpty()) {
          toClose.pop().close()
        }
        taskFaker.close()
    
        (filesystem.delegate as? FakeFileSystem)?.checkNoOpenFiles()
      }
    
      @ParameterizedTest
      @ArgumentsSource(FileSystemParamProvider::class)
      fun emptyCache(parameters: Pair<FileSystem, Boolean>) {
        setUp(parameters.first, parameters.second)
        cache.close()
        assertJournalEquals()
      }
    
    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)
  3. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        assertThat(response2.body.source().readUtf8(3)).isEqualTo("JKL")
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(1)
        response1.close()
        response2.close()
      }
    
      @ParameterizedTest
      @ArgumentsSource(ProtocolParamProvider::class)
      fun connectionWindowUpdateAfterCanceling(
        protocol: Protocol,
        mockWebServer: MockWebServer,
      ) {
    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. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

     *
     * ```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
     * client.cache().close();
     * ```
     *
     * OkHttp also uses daemon threads for HTTP/2 connections. These will exit automatically if they
     * remain idle.
    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)
  5. docs/changelogs/changelog_3x.md

     *  Fix: Improve recovery from failed routes.
     *  Fix: Accommodate tunneling proxies that close the connection after an auth
        challenge.
     *  Fix: Use the proxy authenticator when authenticating HTTP proxies. This
        regression was introduced in OkHttp 3.0.
     *  Fix: Fail fast if network interceptors transform the response body such that
        closing it doesn't also close the underlying stream. We had a bug where
    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)
  6. okhttp/api/okhttp.api

    	public final fun boundary ()Ljava/lang/String;
    	public fun close ()V
    	public final fun nextPart ()Lokhttp3/MultipartReader$Part;
    }
    
    public final class okhttp3/MultipartReader$Part : java/io/Closeable {
    	public fun <init> (Lokhttp3/Headers;Lokio/BufferedSource;)V
    	public final fun body ()Lokio/BufferedSource;
    	public fun close ()V
    	public final fun headers ()Lokhttp3/Headers;
    }
    
    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)
  7. kotlin-js-store/yarn.lock

        wrap-ansi "^7.0.0"
    
    clone-deep@^4.0.1:
      version "4.0.1"
      resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387"
      integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==
      dependencies:
        is-plain-object "^2.0.4"
        kind-of "^6.0.2"
        shallow-clone "^3.0.0"
    
    color-convert@^2.0.1:
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jul 22 12:28:51 GMT 2023
    - 87.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        val source = stream.getSource()
        val out = stream.getSink().buffer()
        source.close()
        assertFailsWith<IOException> {
          source.read(Buffer(), 1)
        }.also { expected ->
          assertThat(expected.message).isEqualTo("stream closed")
        }
        out.writeUtf8("square")
        out.flush()
        out.close()
        assertThat(connection.openStreamCount()).isEqualTo(0)
    
    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