- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 10 for onRead (0.1 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorOverridesTest.kt
} OverrideParam.ReadTimeout -> { client = client .newBuilder() .socketFactory( DelayingSocketFactory(onRead = { Thread.sleep(100L) }), ).build() overrideBadImplementation(override = override.override, testItFails = testItFails) }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 11 02:37:00 GMT 2026 - 28.8K bytes - Click Count (0) -
doc/next/6-stdlib/99-minor/net/http/77370.md
HTTP/1 [Response.Body] now automatically drains any unread content upon being closed, up to a conservative limit, to allow better connection reuse. For most programs, this change should be a no-op, or result in a performance improvement. In rare cases, programs that do not benefit from connection reuse might experience performance degradation if they had been improperly allowing an excessive amount of idle connections to linger; usually by setting
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Mar 24 13:29:25 GMT 2026 - 863 bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
override fun close() { if (closed) return if (bytesRemaining != 0L && !discard(ExchangeCodec.DISCARD_STREAM_TIMEOUT_MILLIS, MILLISECONDS) ) { carrier.noNewExchanges() // Unread bytes remain on the stream. responseBodyComplete(TRAILERS_RESPONSE_BODY_TRUNCATED) } closed = true } } /** An HTTP body with alternating chunk sizes and chunk bodies. */Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 17.6K bytes - Click Count (7) -
src/archive/zip/reader.go
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Jan 15 18:35:56 GMT 2026 - 28.5K bytes - Click Count (0) -
src/bufio/bufio.go
} b.fill() // buffer is empty } c := b.buf[b.r] b.r++ b.lastByte = int(c) return c, nil } // UnreadByte unreads the last byte. Only the most recently read byte can be unread. // // UnreadByte returns an error if the most recent method called on the // [Reader] was not a read operation. Notably, [Reader.Peek], [Reader.Discard], and [Reader.WriteTo] are not // considered read operations.
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Feb 06 17:28:40 GMT 2026 - 22K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/ReleaseNotesTransformer.java
" <img src=\"https://fast.wistia.com/embed/medias/$2/swatch\" style=\"filter:blur(5px);height:100%;object-fit:contain;width:100%;\" alt=\"$1\" aria-hidden=\"true\" onload=\"this.parentNode.style.opacity=1;\" /> \n" + " </div></div></div></div> \n" + " </div> \n" + " </div> \n" + "</details>");Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Mar 03 01:59:51 GMT 2026 - 11.3K bytes - Click Count (0) -
src/builtin/builtin.go
// - Slice, or map: the number of elements in v; if v is nil, len(v) is zero. // - String: the number of bytes in v. // - Channel: the number of elements queued (unread) in the channel buffer; // if v is nil, len(v) is zero. // // For some arguments, such as a string literal or a simple array expression, the // result can be a constant. See the Go language specification's "Length and
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Feb 26 17:14:40 GMT 2026 - 13.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapsTest.java
assertThat(map.get("five")).isNull(); assertThat(map.entrySet()) .containsExactly(mapEntry("one", 3), mapEntry("three", 5), mapEntry("two", 3)) .inOrder(); assertThat(map.tailMap("onea").entrySet()) .containsExactly(mapEntry("three", 5), mapEntry("two", 3)) .inOrder(); assertThat(map.subMap("one", "two").entrySet()) .containsExactly(mapEntry("one", 3), mapEntry("three", 5))
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 63.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
assertThat(server.takeRequest().body?.utf8()).isEqualTo("body") } // Check that if we don't read to the end of a response, the next request on the // recycled connection doesn't get the unread tail of the first request's response. // http://code.google.com/p/android/issues/detail?id=2939 @Test fun bug2939() { val response = MockResponse .Builder()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 133.3K bytes - Click Count (0) -
android/guava/src/com/google/thirdparty/publicsuffix/PublicSuffixPatterns.java
u0007is-lost\u0008is-saved\u000bis-very-bad\u000cis-very-evil\u000cis-very-good\u000cis-very-nice\ris-very-sweet\u000bmisconfused\u0006mlbfan\u000bmy-firewall\nmyfirewall\u0006mywire\u0006nflfan\u0008pimienta\u0007poivron\u0007potager\u0006pubtls\nread-books\nreadmyblog\u0004roxa\rsellsyourhome\u0009small-web\u000cstuff-4-sale\u000bsweetpepper\u0007teckids\u0009toolforge\u0004tunk\u0009tuxfamily\u0006ufcfan\u000bwebredirect\u0007wmcloud\u0007wmflabs\u0005zapto\u0007nerdpol\u0003abo\u0008codeberg...
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 06 20:41:51 GMT 2026 - 290.5K bytes - Click Count (1)