Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Sink (0.14 sec)

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

        }
    
        override fun contentLength(): Long {
          return chunk!!.size * 8L
        }
    
        override fun writeTo(sink: BufferedSink) {
          try {
            var i = 0
            while (i < contentLength()) {
              sink.write(chunk!!)
              sink.flush()
              Thread.sleep(100)
              i += chunk.size
            }
          } catch (e: IOException) {
            ioe = e
    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/http2/HttpOverHttp2Test.kt

                  override fun contentLength(): Long = postBytes.size.toLong()
    
                  override fun writeTo(sink: BufferedSink) {
                    sink.write(postBytes) // push bytes into the stream's buffer
                    sink.flush() // Http2Connection.writeData subject to write window
                    sink.close() // Http2Connection.writeData empty frame
                  }
                },
            ),
          )
    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)
  3. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        val stream = connection.newStream(headerEntries("b", "banana"), true)
        val sink = stream.getSink()
        sink.write(Buffer().writeUtf8("abcde"), 5)
        stream.writeTimeout().timeout(500, TimeUnit.MILLISECONDS)
        val startNanos = System.nanoTime()
        sink.write(Buffer().writeUtf8("f"), 1)
        assertFailsWith<InterruptedIOException> {
          sink.flush() // This will time out waiting on the write window.
        }
    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)
  4. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

    import okhttp3.internal.tls.CertificateChainCleaner
    import okhttp3.internal.tls.OkHostnameVerifier
    import okhttp3.internal.toImmutableList
    import okhttp3.internal.ws.RealWebSocket
    import okio.Sink
    import okio.Source
    import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
    
    /**
     * Factory for [calls][Call], which can be used to send HTTP requests and read their responses.
     *
    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. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        set("k1", "a", "a")
    
        // Create an editor, then detach it.
        val editor = cache.edit("k1")!!
        editor.newSink(0).buffer().use { sink ->
          cache.evictAll()
    
          // Complete the original edit. It goes into a black hole.
          sink.writeUtf8("bb")
        }
        assertThat(cache["k1"]).isNull()
      }
    
      @ParameterizedTest
      @ArgumentsSource(FileSystemParamProvider::class)
    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)
  6. docs/changelogs/changelog_3x.md

        This simple option dramatically changes the behavior of the request body and of the entire
        call.
    
        The `RequestBody.writeTo()` method may now retain a reference to the provided sink and
        hand it off to another thread to write to it after `writeTo` returns.
    
        The `EventListener` may now see requests and responses interleaved in ways not previously
    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)
  7. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * component parts, this class implements relative URL resolution: what address you'd reach by
     * clicking a relative link on a specified page. For example:
     *
     * ```java
     * HttpUrl base = HttpUrl.parse("https://www.youtube.com/user/WatchTheDaily/videos");
     * HttpUrl link = base.resolve("../../watch?v=cbP2N1BQdYc");
     * System.out.println(link);
     * ```
     *
     * which prints:
     *
     * ```
     * https://www.youtube.com/watch?v=cbP2N1BQdYc
     * ```
    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)
  8. docs/ru/docs/deployment/docker.md

    * <a href="https://hub.docker.com/_/mysql" class="external-link" target="_blank">MySQL</a>
    * <a href="https://hub.docker.com/_/mongo" class="external-link" target="_blank">MongoDB</a>
    * <a href="https://hub.docker.com/_/redis" class="external-link" target="_blank">Redis</a>
    
    и т.п.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 57.5K bytes
    - Viewed (0)
  9. .bazelrc

    build:macos --cxxopt=-std=c++17
    build:macos --host_cxxopt=-std=c++17
    build:windows --cxxopt=/std:c++17
    build:windows --host_cxxopt=/std:c++17
    
    # On windows, we still link everything into a single DLL.
    build:windows --config=monolithic
    
    # On linux, we dynamically link small amount of kernels
    build:linux --config=dynamic_kernels
    
    # Make sure to include as little of windows.h as possible
    build:windows --copt=-DWIN32_LEAN_AND_MEAN
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Thu May 02 19:34:20 GMT 2024
    - 52.8K bytes
    - Viewed (2)
  10. src/main/webapp/js/admin/adminlte.min.js.map

    `collapsed${EVENT_KEY}`,\n    LOAD_DATA_API: `load${EVENT_KEY}`\n  }\n\n  const Selector = {\n    LI           : '.nav-item',\n    LINK         : '.nav-link',\n    TREEVIEW_MENU: '.nav-treeview',\n    OPEN         : '.menu-open',\n    DATA_WIDGET  : '[data-widget=\"treeview\"]'\n  }\n\n  const ClassName = {\n    LI               : 'nav-item',\n    LINK             : 'nav-link',\n    TREEVIEW_MENU    : 'nav-treeview',\n    OPEN             : 'menu-open',\n    SIDEBAR_COLLAPSED: 'sidebar-collapse'\n  }\n\n...
    Plain Text
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Wed Feb 12 07:55:41 GMT 2020
    - 77K bytes
    - Viewed (1)
Back to top